#[non_exhaustive]pub enum DecodingError {
InvalidBech32(Bech32Error),
InvalidBase32(Base32Error),
InvalidBase64(Base64Error),
InvalidHex(HexError),
InvalidEncoding,
}Expand description
Unified error type wrapping format-specific decoding errors (HexError,
Base32Error, Base64Error, Bech32Error). Always available; variants depend
on enabled features.
Unified error type for multi-format decoding operations.
Wraps format-specific errors from hex, base32, base64url, bech32, and bech32m decoders.
Always available; variants depend on enabled features. Like the format-specific
errors it wraps, this type is heap-free, Copy, and build-invariant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidBech32(Bech32Error)
The input is not valid Bech32.
InvalidBase32(Base32Error)
The input is not valid Base32.
InvalidBase64(Base64Error)
The input is not valid Base64url.
InvalidHex(HexError)
The input is not valid hexadecimal.
InvalidEncoding
The encoding could not be identified.
Deliberately carries no hint text — free-form diagnostics derived from the input would embed input data in the error value.
Trait Implementations§
Source§impl Clone for DecodingError
impl Clone for DecodingError
Source§fn clone(&self) -> DecodingError
fn clone(&self) -> DecodingError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DecodingError
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
impl Eq for DecodingError
Source§impl Error for DecodingError
Available on crate feature std only.
impl Error for DecodingError
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()