pub enum PrimitivesError {
Show 16 variants
InvalidHex(String),
InvalidDer(String),
InvalidWif(String),
PointNotOnCurve,
InvalidPrivateKey(String),
InvalidPublicKey(String),
InvalidSignature(String),
DecryptionFailed,
InvalidPadding,
ChecksumMismatch,
InsufficientEntropy,
ArithmeticError(String),
ThresholdError(String),
DivisionByZero,
InvalidLength(String),
InvalidFormat(String),
}Expand description
Unified error type for all primitive operations.
Variants§
InvalidHex(String)
InvalidDer(String)
InvalidWif(String)
PointNotOnCurve
InvalidPrivateKey(String)
InvalidPublicKey(String)
InvalidSignature(String)
DecryptionFailed
InvalidPadding
ChecksumMismatch
InsufficientEntropy
ArithmeticError(String)
ThresholdError(String)
DivisionByZero
InvalidLength(String)
InvalidFormat(String)
Trait Implementations§
Source§impl Debug for PrimitivesError
impl Debug for PrimitivesError
Source§impl Display for PrimitivesError
impl Display for PrimitivesError
Source§impl Error for PrimitivesError
impl Error for PrimitivesError
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 From<PrimitivesError> for AuthError
impl From<PrimitivesError> for AuthError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitivesError> for CompatError
impl From<PrimitivesError> for CompatError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitivesError> for ScriptError
impl From<PrimitivesError> for ScriptError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitivesError> for ServicesError
impl From<PrimitivesError> for ServicesError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitivesError> for TransactionError
impl From<PrimitivesError> for TransactionError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitivesError> for WalletError
impl From<PrimitivesError> for WalletError
Source§fn from(e: PrimitivesError) -> Self
fn from(e: PrimitivesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrimitivesError
impl RefUnwindSafe for PrimitivesError
impl Send for PrimitivesError
impl Sync for PrimitivesError
impl Unpin for PrimitivesError
impl UnsafeUnpin for PrimitivesError
impl UnwindSafe for PrimitivesError
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