pub enum InsertDescriptorError<K> {
DescriptorAlreadyAssigned {
descriptor: Descriptor<DescriptorPublicKey>,
existing_assignment: K,
},
KeychainAlreadyAssigned {
keychain: K,
existing_assignment: Descriptor<DescriptorPublicKey>,
},
}
Expand description
Error returned from KeychainTxOutIndex::insert_descriptor
Variants§
DescriptorAlreadyAssigned
The descriptor has already been assigned to a keychain so you can’t assign it to another
Fields
§
descriptor: Descriptor<DescriptorPublicKey>
The descriptor you have attempted to reassign
§
existing_assignment: K
The keychain that the descriptor is already assigned to
KeychainAlreadyAssigned
The keychain is already assigned to a descriptor so you can’t reassign it
Trait Implementations§
source§impl<K: Clone> Clone for InsertDescriptorError<K>
impl<K: Clone> Clone for InsertDescriptorError<K>
source§fn clone(&self) -> InsertDescriptorError<K>
fn clone(&self) -> InsertDescriptorError<K>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<K: Debug> Debug for InsertDescriptorError<K>
impl<K: Debug> Debug for InsertDescriptorError<K>
source§impl<K: Debug> Display for InsertDescriptorError<K>
impl<K: Debug> Display for InsertDescriptorError<K>
source§impl<K: Debug> Error for InsertDescriptorError<K>
impl<K: Debug> Error for InsertDescriptorError<K>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<K: PartialEq> PartialEq for InsertDescriptorError<K>
impl<K: PartialEq> PartialEq for InsertDescriptorError<K>
source§fn eq(&self, other: &InsertDescriptorError<K>) -> bool
fn eq(&self, other: &InsertDescriptorError<K>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<K> StructuralPartialEq for InsertDescriptorError<K>
Auto Trait Implementations§
impl<K> !Freeze for InsertDescriptorError<K>
impl<K> RefUnwindSafe for InsertDescriptorError<K>where
K: RefUnwindSafe,
impl<K> Send for InsertDescriptorError<K>where
K: Send,
impl<K> Sync for InsertDescriptorError<K>where
K: Sync,
impl<K> Unpin for InsertDescriptorError<K>where
K: Unpin,
impl<K> UnwindSafe for InsertDescriptorError<K>where
K: UnwindSafe,
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