pub enum C32Error {
InvalidC32,
InvalidChar(char),
InvalidChecksum([u8; 4], Vec<u8>),
InvalidAddress(String),
InvalidVersion(u8),
FromUtf8Error(FromUtf8Error),
IntConversionError(TryFromIntError),
}
Expand description
C32 error type
Variants§
InvalidC32
Invalid C32 string.
InvalidChar(char)
Invalid character.
InvalidChecksum([u8; 4], Vec<u8>)
Invalid checksum.
InvalidAddress(String)
Invalid C32 address.
InvalidVersion(u8)
Invalid C32 address.
FromUtf8Error(FromUtf8Error)
Conversion error, from utf8.
IntConversionError(TryFromIntError)
Integer conversion error.
Trait Implementations§
Source§impl Error for C32Error
impl Error for C32Error
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<C32Error> for StacksError
impl From<C32Error> for StacksError
Source§impl From<FromUtf8Error> for C32Error
impl From<FromUtf8Error> for C32Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for C32Error
impl From<TryFromIntError> for C32Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
impl Eq for C32Error
impl StructuralPartialEq for C32Error
Auto Trait Implementations§
impl Freeze for C32Error
impl RefUnwindSafe for C32Error
impl Send for C32Error
impl Sync for C32Error
impl Unpin for C32Error
impl UnwindSafe for C32Error
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