Enum DecodePaddingMode
enum DecodePaddingMode
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.
Implementations
impl Clone for DecodePaddingMode
fn clone(self: &Self) -> DecodePaddingMode
impl Copy for DecodePaddingMode
impl Debug for DecodePaddingMode
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for DecodePaddingMode
impl Freeze for DecodePaddingMode
impl PartialEq for DecodePaddingMode
fn eq(self: &Self, other: &DecodePaddingMode) -> bool
impl RefUnwindSafe for DecodePaddingMode
impl Send for DecodePaddingMode
impl StructuralPartialEq for DecodePaddingMode
impl Sync for DecodePaddingMode
impl Unpin for DecodePaddingMode
impl UnwindSafe for DecodePaddingMode
impl<T> Any for DecodePaddingMode
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for DecodePaddingMode
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for DecodePaddingMode
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for DecodePaddingMode
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for DecodePaddingMode
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DecodePaddingMode
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for DecodePaddingMode
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for DecodePaddingMode
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for DecodePaddingMode
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>