pub enum DecodePadding {
RequireCanonical,
Forbid,
Indifferent,
}Expand description
Which padding forms ordinary decoding accepts.
Variants§
RequireCanonical
Require the canonical padding count for the decoded length.
Forbid
Reject every padding byte.
Indifferent
Accept canonical, absent, or partially present trailing padding.
Trait Implementations§
Source§impl Clone for DecodePadding
impl Clone for DecodePadding
Source§fn clone(&self) -> DecodePadding
fn clone(&self) -> DecodePadding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodePadding
Source§impl Debug for DecodePadding
impl Debug for DecodePadding
impl Eq for DecodePadding
Source§impl Hash for DecodePadding
impl Hash for DecodePadding
Source§impl PartialEq for DecodePadding
impl PartialEq for DecodePadding
impl StructuralPartialEq for DecodePadding
Auto Trait Implementations§
impl Freeze for DecodePadding
impl RefUnwindSafe for DecodePadding
impl Send for DecodePadding
impl Sync for DecodePadding
impl Unpin for DecodePadding
impl UnsafeUnpin for DecodePadding
impl UnwindSafe for DecodePadding
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