#[non_exhaustive]pub enum Base58Error {
BufferTooSmall,
DecodeFailed,
InvalidCharacter,
NonAsciiCharacter,
InputTooLarge,
}Expand description
Error returned when base58btc decoding fails.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BufferTooSmall
The output buffer was too small to hold the decoded bytes.
DecodeFailed
Decoding failed for a reason not covered by the other variants.
InvalidCharacter
The input contained a character outside the base58btc alphabet.
NonAsciiCharacter
The input contained a non-ASCII character.
InputTooLarge
The input exceeded the accepted base58btc text length.
Trait Implementations§
Source§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
1.30.0 · 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<Base58Error> for MultibaseError
impl From<Base58Error> for MultibaseError
Source§fn from(source: Base58Error) -> Self
fn from(source: Base58Error) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Base58Error
impl From<Error> for Base58Error
Source§fn from(value: Bs58DecodeError) -> Self
fn from(value: Bs58DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Base58Error
impl RefUnwindSafe for Base58Error
impl Send for Base58Error
impl Sync for Base58Error
impl Unpin for Base58Error
impl UnsafeUnpin 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