pub enum B64sDecodeError {
InvalidCharacter {
byte: u8,
position: usize,
},
InvalidPadding,
InvalidLength {
length: usize,
},
}Expand description
Specific reason a base64 decode failed.
Variants§
InvalidCharacter
Encountered a byte that is not part of the chosen alphabet, not padding, and not whitespace.
Fields
InvalidPadding
Padding characters appear at an unexpected position.
InvalidLength
After stripping whitespace, the remaining length is not valid
(i.e. len % 4 == 1 which can never be produced by encoding).
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Base64DecodeError
impl Debug for Base64DecodeError
Source§impl Display for Base64DecodeError
impl Display 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 PartialEq for Base64DecodeError
impl PartialEq for Base64DecodeError
impl Eq for Base64DecodeError
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