Enum mycitadel::model::DescriptorError
source · [−]pub enum DescriptorError {
UnknownSigner(Fingerprint),
UnknownConditionSigner(SpendingCondition, Fingerprint),
NoSigners,
NoConditions,
NoDescriptorClasses,
DuplicateCondition(u8, SpendingCondition),
DuplicateSigner(String, Fingerprint),
InsufficientSignerCount(usize, SpendingCondition),
}Variants
UnknownSigner(Fingerprint)
signer with fingerprint {0} is not part of the wallet descriptor.
UnknownConditionSigner(SpendingCondition, Fingerprint)
spending condition {0} references unknown signer with fingerprint {1}.
NoSigners
no signers present.
NoConditions
no spending conditions present.
NoDescriptorClasses
no information about scriptPubkey construction present.
DuplicateCondition(u8, SpendingCondition)
duplicated spending condition {1} at depth {0}.
DuplicateSigner(String, Fingerprint)
signer {0} key with fingerprint {1} is already present among signers.
InsufficientSignerCount(usize, SpendingCondition)
insufficient number of signers ({0}) to support spending condition “{1}” requirement.
Trait Implementations
sourceimpl Clone for DescriptorError
impl Clone for DescriptorError
sourcefn clone(&self) -> DescriptorError
fn clone(&self) -> DescriptorError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DescriptorError
impl Debug for DescriptorError
sourceimpl Display for DescriptorError
impl Display for DescriptorError
sourceimpl Error for DescriptorError
impl Error for DescriptorError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<DescriptorError> for String
impl From<DescriptorError> for String
sourcefn from(err: DescriptorError) -> Self
fn from(err: DescriptorError) -> Self
Converts to this type from the input type.
sourceimpl Hash for DescriptorError
impl Hash for DescriptorError
sourceimpl Ord for DescriptorError
impl Ord for DescriptorError
sourcefn cmp(&self, other: &DescriptorError) -> Ordering
fn cmp(&self, other: &DescriptorError) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DescriptorError> for DescriptorError
impl PartialEq<DescriptorError> for DescriptorError
sourcefn eq(&self, other: &DescriptorError) -> bool
fn eq(&self, other: &DescriptorError) -> bool
sourceimpl PartialOrd<DescriptorError> for DescriptorError
impl PartialOrd<DescriptorError> for DescriptorError
sourcefn partial_cmp(&self, other: &DescriptorError) -> Option<Ordering>
fn partial_cmp(&self, other: &DescriptorError) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for DescriptorError
impl StructuralEq for DescriptorError
impl StructuralPartialEq for DescriptorError
Auto Trait Implementations
impl RefUnwindSafe for DescriptorError
impl Send for DescriptorError
impl Sync for DescriptorError
impl Unpin for DescriptorError
impl UnwindSafe for DescriptorError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more