Enum bitcoin::util::base58::Error
[−]
[src]
pub enum Error { BadByte(u8), BadChecksum(u32, u32), InvalidLength(usize), InvalidVersion(Vec<u8>), TooShort(usize), Other(String), }
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
InvalidVersion(Vec<u8>)
Version byte(s) were not recognized
TooShort(usize)
Checked data was less than 4 bytes
Other(String)
Any other error
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl Eq for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
fn description(&self) -> &'static str
[src]
A short description of the error. Read more