pub enum Base64Error {
PaddingEncounteredDuringDoUpdate,
InvalidB64Character(usize),
}Expand description
Return type for errors relating to Base64 encoding and decoding.
Variants§
PaddingEncounteredDuringDoUpdate
The Base64Decoder::do_update method must not be called on a block that contains padding.
If this error is returned, then the provided input has not been processed and the caller must instead
pass the same input to Base64Decoder::do_final. Note that do_final() is tolerant of incomplete padding blocks,
so even if an additional padding character is contained in the next chunk of input, do_final()
will still produce the correct output – ie any additional chunks held by the caller can be discarded.
InvalidB64Character(usize)
Input contained a character that was not in the base64 alphabet. The index of the illegal character is included in the output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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