pub enum DescriptorError {
Device(HWIDeviceError),
Bip32(Error),
Miniscript(Error),
UnsupportedDescriptorType(DescriptorType),
BarePk,
KeypoolRange,
HardenedAfterUnhardened,
}Expand description
A device-query, derivation, or descriptor-construction failure.
Variants§
Device(HWIDeviceError)
A wallet query failed.
Tuple Fields
§
0: HWIDeviceErrorThe wallet-operation error.
Bip32(Error)
A BIP32 derivation index is invalid.
Miniscript(Error)
A descriptor could not be constructed.
UnsupportedDescriptorType(DescriptorType)
The requested descriptor type is unsupported.
Tuple Fields
§
0: DescriptorTypeThe unsupported script type.
BarePk
A bare public-key descriptor has no supported account purpose.
KeypoolRange
The keypool’s first index exceeds its last index.
HardenedAfterUnhardened
A hardened child follows an unhardened child in a keypool path.
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(source: Error) -> DescriptorError
fn from(source: Error) -> DescriptorError
Converts to this type from the input type.
Source§impl From<Error> for DescriptorError
impl From<Error> for DescriptorError
Source§fn from(source: Error) -> DescriptorError
fn from(source: Error) -> DescriptorError
Converts to this type from the input type.
Source§impl From<HWIDeviceError> for DescriptorError
impl From<HWIDeviceError> for DescriptorError
Source§fn from(source: HWIDeviceError) -> DescriptorError
fn from(source: HWIDeviceError) -> DescriptorError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DescriptorError
impl !UnwindSafe for DescriptorError
impl Freeze for DescriptorError
impl Send for DescriptorError
impl Sync for DescriptorError
impl Unpin for DescriptorError
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.