#[non_exhaustive]pub enum MultibaseError {
InputTooLarge,
TooShort,
UnsupportedPrefix,
Base58(Base58Error),
Base64Url,
LengthOverflow,
}Expand description
Error returned when decoding a multibase string 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.
InputTooLarge
Encoded multibase text exceeded the supported resource limit.
TooShort
The input is too short to contain a multibase prefix and payload.
UnsupportedPrefix
The leading multibase prefix denotes an unsupported base encoding.
Base58(Base58Error)
The base58btc payload failed to decode.
Base64Url
The base64url payload failed to decode.
LengthOverflow
The encoded output length would exceed the supported allocation domain.
Trait Implementations§
Source§impl Debug for MultibaseError
impl Debug for MultibaseError
Source§impl Display for MultibaseError
impl Display for MultibaseError
Source§impl Error for MultibaseError
impl Error for MultibaseError
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.
Auto Trait Implementations§
impl Freeze for MultibaseError
impl RefUnwindSafe for MultibaseError
impl Send for MultibaseError
impl Sync for MultibaseError
impl Unpin for MultibaseError
impl UnsafeUnpin for MultibaseError
impl UnwindSafe for MultibaseError
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