pub enum Error {
BadByte(u8),
BadChecksum(u32, u32),
InvalidLength(usize),
InvalidExtendedKeyVersion([u8; 4]),
InvalidAddressVersion(u8),
TooShort(usize),
}
Expand description
An error that might occur during base58 decoding.
Variants§
BadByte(u8)
Invalid character encountered.
BadChecksum(u32, u32)
Checksum was not correct (expected, actual).
InvalidLength(usize)
The length (in bytes) of the object was not correct.
Note that if the length is excessively long the provided length may be an estimate (and the checksum step may be skipped).
InvalidExtendedKeyVersion([u8; 4])
Extended Key version byte(s) were not recognized.
InvalidAddressVersion(u8)
Address version byte were not recognized.
TooShort(usize)
Checked data was less than 4 bytes.
Trait Implementations§
Source§impl From<Error> for AddressParseError
impl From<Error> for AddressParseError
Source§impl Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.