pub enum Base58Error {
InvalidChar(char),
ChecksumFailed {
expected: Vec<u8>,
actual: Vec<u8>,
},
InvalidLength(usize),
InvalidVersion(u8),
}
Expand description
Error concerning encoding/decoding of base58 addresses
Variants§
InvalidChar(char)
Unexpected character (char)
ChecksumFailed
Checksum failed (expected, actual)
InvalidLength(usize)
Invalid length (length)
InvalidVersion(u8)
Version byte was not recognized
Trait Implementations§
Source§impl Clone for Base58Error
impl Clone for Base58Error
Source§fn clone(&self) -> Base58Error
fn clone(&self) -> Base58Error
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Base58Error
impl Debug for Base58Error
Source§impl Display for Base58Error
impl Display for Base58Error
Source§impl Error for Base58Error
impl Error for Base58Error
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Base58Error> for AddressError
impl From<Base58Error> for AddressError
Source§fn from(e: Base58Error) -> AddressError
fn from(e: Base58Error) -> AddressError
Converts to this type from the input type.
Source§impl PartialEq for Base58Error
impl PartialEq for Base58Error
impl Eq for Base58Error
impl StructuralPartialEq for Base58Error
Auto Trait Implementations§
impl Freeze for Base58Error
impl RefUnwindSafe for Base58Error
impl Send for Base58Error
impl Sync for Base58Error
impl Unpin for Base58Error
impl UnwindSafe for Base58Error
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