Enum bdk_wallet::LoadMismatch
source · 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
source§fn eq(&self, other: &LoadMismatch) -> bool
fn eq(&self, other: &LoadMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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