pub enum ZincError {
InvalidWordCount(u8),
MnemonicError(String),
KeyDerivation(String),
WalletError(String),
EncryptionError(String),
DecryptionError,
SerializationError(String),
ConfigError(String),
BdkError(String),
OfferError(String),
CapabilityMissing,
}Expand description
All errors that can occur in Zinc wallet operations.
Variants§
InvalidWordCount(u8)
Unsupported BIP-39 word count was requested.
MnemonicError(String)
Mnemonic parsing/validation failure.
KeyDerivation(String)
HD key derivation failure.
WalletError(String)
Generic wallet operation failure.
EncryptionError(String)
Encryption operation failure.
DecryptionError
Decryption failed due to invalid password or malformed payload.
SerializationError(String)
JSON or binary serialization/deserialization failure.
ConfigError(String)
Invalid runtime configuration.
BdkError(String)
Wrapped error from BDK primitives.
OfferError(String)
Offer envelope creation/validation/signature failure.
CapabilityMissing
Attempted a signing operation on a read-only (Watch) profile.
Trait Implementations§
Source§impl Error for ZincError
impl Error for ZincError
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()
Auto Trait Implementations§
impl Freeze for ZincError
impl RefUnwindSafe for ZincError
impl Send for ZincError
impl Sync for ZincError
impl Unpin for ZincError
impl UnsafeUnpin for ZincError
impl UnwindSafe for ZincError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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.