#[non_exhaustive]pub enum Base64DecodeError {
InvalidByte {
index: usize,
byte: u8,
},
InvalidLength {
len: usize,
},
InvalidLastSymbol {
index: usize,
byte: u8,
},
InvalidPadding,
}Expand description
Error returned when Base64 decoding rejects caller-owned input.
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.
InvalidByte
The encoded text contains a byte outside the selected Base64 alphabet.
InvalidLength
The encoded text length is invalid for Base64 decoding.
InvalidLastSymbol
The final non-padding symbol has impossible trailing bits.
InvalidPadding
The encoded text violates the selected padding policy.
Trait Implementations§
Source§impl Clone for Base64DecodeError
impl Clone for Base64DecodeError
Source§fn clone(&self) -> Base64DecodeError
fn clone(&self) -> Base64DecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Base64DecodeError
Source§impl Debug for Base64DecodeError
impl Debug for Base64DecodeError
Source§impl Display for Base64DecodeError
impl Display for Base64DecodeError
impl Eq for Base64DecodeError
Source§impl Error for Base64DecodeError
impl Error for Base64DecodeError
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<DecodeError> for Base64DecodeError
impl From<DecodeError> for Base64DecodeError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Base64DecodeError
impl PartialEq for Base64DecodeError
Source§fn eq(&self, other: &Base64DecodeError) -> bool
fn eq(&self, other: &Base64DecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Base64DecodeError
Auto Trait Implementations§
impl Freeze for Base64DecodeError
impl RefUnwindSafe for Base64DecodeError
impl Send for Base64DecodeError
impl Sync for Base64DecodeError
impl Unpin for Base64DecodeError
impl UnsafeUnpin for Base64DecodeError
impl UnwindSafe for Base64DecodeError
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