pub enum Base64ErrorKind {
InvalidByte,
InvalidLength,
InvalidLastSymbol,
InvalidPadding,
}Expand description
Structured category for an error reported by the Base64 dependency.
§Examples
use qubit_codec_misc::Base64ErrorKind;
let kind = Base64ErrorKind::InvalidPadding;
assert_eq!(kind, Base64ErrorKind::InvalidPadding);Variants§
InvalidByte
A byte outside the configured alphabet was encountered.
InvalidLength
The number of Base64 symbols is invalid.
InvalidLastSymbol
The final symbol contains bits that would be discarded.
InvalidPadding
Padding is absent, unexpected, or malformed for the configured engine.
Trait Implementations§
Source§impl Clone for Base64ErrorKind
impl Clone for Base64ErrorKind
impl Copy for Base64ErrorKind
Source§impl Debug for Base64ErrorKind
impl Debug for Base64ErrorKind
impl Eq for Base64ErrorKind
Source§impl PartialEq for Base64ErrorKind
impl PartialEq for Base64ErrorKind
impl StructuralPartialEq for Base64ErrorKind
Auto Trait Implementations§
impl Forget for Base64ErrorKind
impl Freeze for Base64ErrorKind
impl RefUnwindSafe for Base64ErrorKind
impl Send for Base64ErrorKind
impl Sync for Base64ErrorKind
impl Unpin for Base64ErrorKind
impl UnsafeUnpin for Base64ErrorKind
impl UnwindSafe for Base64ErrorKind
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