pub enum ParseBase64Error {
InvalidByte {
offset: usize,
byte: u8,
},
InvalidLength {
length: usize,
},
InvalidLastSymbol {
offset: usize,
byte: u8,
},
InvalidPadding,
}Available on crate feature
base64 only.Expand description
Error returned by Base64Vec::from_str.
Variants§
InvalidByte
An invalid byte was found at the given offset.
InvalidLength
The input length (in valid base64 symbols) is invalid.
InvalidLastSymbol
The last non-padding symbol has nonzero trailing bits that would be discarded, indicating corrupted or truncated input.
InvalidPadding
Padding was absent, incorrect, or otherwise not as expected.
Trait Implementations§
Source§impl Clone for ParseBase64Error
impl Clone for ParseBase64Error
Source§fn clone(&self) -> ParseBase64Error
fn clone(&self) -> ParseBase64Error
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 ParseBase64Error
impl Debug for ParseBase64Error
Source§impl Display for ParseBase64Error
impl Display for ParseBase64Error
Source§impl Error for ParseBase64Error
impl Error for ParseBase64Error
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 ParseBase64Error
impl PartialEq for ParseBase64Error
impl Eq for ParseBase64Error
impl StructuralPartialEq for ParseBase64Error
Auto Trait Implementations§
impl Freeze for ParseBase64Error
impl RefUnwindSafe for ParseBase64Error
impl Send for ParseBase64Error
impl Sync for ParseBase64Error
impl Unpin for ParseBase64Error
impl UnsafeUnpin for ParseBase64Error
impl UnwindSafe for ParseBase64Error
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