Enum bitcoin::util::base58::Error [−][src]
pub enum Error { BadByte(u8), BadChecksum(u32, u32), InvalidLength(usize), InvalidVersion(Vec<u8>), TooShort(usize), Other(String), }
Expand description
An error that might occur during base58 decoding
Variants
BadByte(u8)
Invalid character encountered
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).
Version byte(s) were not recognized
TooShort(usize)
Checked data was less than 4 bytes
Other(String)
Any other error
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more