pub enum DecodePaddingMode {
Indifferent,
RequireCanonical,
RequireNone,
}
Expand description
Controls how pad bytes are handled when decoding.
Each Engine must support at least the behavior indicated by DecodePaddingMode::RequireCanonical, and may support other modes.
Variants§
Indifferent
Canonical padding is allowed, but any fewer padding bytes than that is also allowed.
RequireCanonical
Padding must be canonical (0, 1, or 2 =
as needed to produce a 4 byte suffix).
RequireNone
Padding must be absent – for when you want predictable padding, without any wasted bytes.
Trait Implementations§
Source§impl Clone for DecodePaddingMode
impl Clone for DecodePaddingMode
Source§fn clone(&self) -> DecodePaddingMode
fn clone(&self) -> DecodePaddingMode
Returns a copy 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 DecodePaddingMode
impl Debug for DecodePaddingMode
Source§impl PartialEq for DecodePaddingMode
impl PartialEq for DecodePaddingMode
impl Copy for DecodePaddingMode
impl Eq for DecodePaddingMode
impl StructuralPartialEq for DecodePaddingMode
Auto Trait Implementations§
impl Freeze for DecodePaddingMode
impl RefUnwindSafe for DecodePaddingMode
impl Send for DecodePaddingMode
impl Sync for DecodePaddingMode
impl Unpin for DecodePaddingMode
impl UnwindSafe for DecodePaddingMode
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