pub enum DescriptorError {
MissingTypeTag,
InvalidDescriptorType(u8),
InvalidPayloadLength(usize),
InvalidXOnlyPublicKey,
HexDecodingError(HexToBytesError),
InvalidAddressConversion(DescriptorType),
Secp256k1Error(Error),
WitnessProgramError(Error),
}
Expand description
Errors related to Descriptor
.
Variants§
MissingTypeTag
Missing type tag.
InvalidDescriptorType(u8)
Invalid descriptor type tag.
InvalidPayloadLength(usize)
Invalid payload length.
InvalidXOnlyPublicKey
Invalid X-only public key.
HexDecodingError(HexToBytesError)
Hex decoding error.
InvalidAddressConversion(DescriptorType)
Invalid Address
conversion.
Currently only susceptible for OP_RETURN
descriptors
being converted to a bitcoin address.
Secp256k1Error(Error)
secp256k1
errors.
WitnessProgramError(Error)
WitnessProgram
errors.
Trait Implementations§
Source§impl Debug for DescriptorError
impl Debug for DescriptorError
Source§impl Display for DescriptorError
impl Display for DescriptorError
Source§impl Error for DescriptorError
impl Error for DescriptorError
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 From<Error> for DescriptorError
impl From<Error> for DescriptorError
Source§fn from(err: Secp256k1Error) -> Self
fn from(err: Secp256k1Error) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DescriptorError
impl From<Error> for DescriptorError
Source§fn from(err: WitnessProgramError) -> Self
fn from(err: WitnessProgramError) -> Self
Converts to this type from the input type.
Source§impl From<HexToBytesError> for DescriptorError
impl From<HexToBytesError> for DescriptorError
Source§fn from(err: HexToBytesError) -> Self
fn from(err: HexToBytesError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DescriptorError
impl PartialEq for DescriptorError
impl Eq for DescriptorError
impl StructuralPartialEq for DescriptorError
Auto Trait Implementations§
impl Freeze for DescriptorError
impl RefUnwindSafe for DescriptorError
impl Send for DescriptorError
impl Sync for DescriptorError
impl Unpin for DescriptorError
impl UnwindSafe for DescriptorError
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