pub enum Base64Error {
InvalidCharacter(usize),
InvalidLength,
}Expand description
Why text is not valid base64.
Variants§
InvalidCharacter(usize)
A character outside the alphabet, padding and line breaks, at this byte offset.
InvalidLength
The characters do not form whole groups of four, or padding is misplaced.
Trait Implementations§
Source§impl Clone for Base64Error
impl Clone for Base64Error
impl Copy for Base64Error
Source§impl Debug for Base64Error
impl Debug for Base64Error
Source§impl Display for Base64Error
impl Display for Base64Error
impl Eq for Base64Error
Source§impl Error for Base64Error
impl Error for Base64Error
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 Base64Error
impl PartialEq for Base64Error
impl StructuralPartialEq for Base64Error
Auto Trait Implementations§
impl Forget for Base64Error
impl Freeze for Base64Error
impl Move for Base64Error
impl RefUnwindSafe for Base64Error
impl Send for Base64Error
impl Sync for Base64Error
impl Unpin for Base64Error
impl UnsafeUnpin for Base64Error
impl UnwindSafe for Base64Error
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