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)>
Returns 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>
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