pub enum PrimitiveError {
InvalidHex(String),
InvalidLength {
expected: usize,
got: usize,
},
InvalidBase58(String),
SerializationError(String),
InvalidChecksum,
}Expand description
Errors that can occur in primitive operations
Variants§
Trait Implementations§
Source§impl Debug for PrimitiveError
impl Debug for PrimitiveError
Source§impl Display for PrimitiveError
impl Display for PrimitiveError
Source§impl Error for PrimitiveError
impl Error for PrimitiveError
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 PrimitiveError
impl RefUnwindSafe for PrimitiveError
impl Send for PrimitiveError
impl Sync for PrimitiveError
impl Unpin for PrimitiveError
impl UnsafeUnpin for PrimitiveError
impl UnwindSafe for PrimitiveError
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