pub enum LoadMismatch {
Network {
loaded: Network,
expected: Network,
},
Genesis {
loaded: BlockHash,
expected: BlockHash,
},
Descriptor {
keychain: KeychainKind,
loaded: Option<ExtendedDescriptor>,
expected: Option<ExtendedDescriptor>,
},
}
Expand description
Represents a mismatch with what is loaded and what is expected from LoadParams
.
Variants§
Network
Network does not match.
Genesis
Genesis hash does not match.
Fields
§
loaded: BlockHash
The genesis hash that is loaded.
§
expected: BlockHash
The expected genesis hash.
Descriptor
Descriptor’s DescriptorId
does not match.
Fields
§
keychain: KeychainKind
Keychain identifying the descriptor.
§
loaded: Option<ExtendedDescriptor>
The loaded descriptor.
§
expected: Option<ExtendedDescriptor>
The expected descriptor.
Trait Implementations§
Source§impl Debug for LoadMismatch
impl Debug for LoadMismatch
Source§impl From<LoadMismatch> for LoadError
impl From<LoadMismatch> for LoadError
Source§fn from(mismatch: LoadMismatch) -> Self
fn from(mismatch: LoadMismatch) -> Self
Converts to this type from the input type.
Source§impl<E> From<LoadMismatch> for LoadWithPersistError<E>
impl<E> From<LoadMismatch> for LoadWithPersistError<E>
Source§fn from(mismatch: LoadMismatch) -> Self
fn from(mismatch: LoadMismatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LoadMismatch
impl PartialEq for LoadMismatch
impl StructuralPartialEq for LoadMismatch
Auto Trait Implementations§
impl !Freeze for LoadMismatch
impl RefUnwindSafe for LoadMismatch
impl Send for LoadMismatch
impl Sync for LoadMismatch
impl Unpin for LoadMismatch
impl UnwindSafe for LoadMismatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more