Enum DecodePaddingMode
pub 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.
Trait Implementations
impl Clone for DecodePaddingMode
fn clone(&self) -> Self
impl Copy for DecodePaddingMode
impl Debug for DecodePaddingMode
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for DecodePaddingMode
impl PartialEq for DecodePaddingMode
fn eq(&self, other: &Self) -> bool