#[non_exhaustive]pub enum UnpaddingMode {
None,
}Expand description
Padding mode for decryption.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No padding.
If the BlockCipherMode requires padding of incomplete
final blocks (see BlockCipherMode::requires_padding),
padding is required unless the plaintext’s length is a
multiple of the symmetric algorithm’s block size. Otherwise,
an error is returned.
Trait Implementations§
Source§impl Clone for UnpaddingMode
impl Clone for UnpaddingMode
Source§fn clone(&self) -> UnpaddingMode
fn clone(&self) -> UnpaddingMode
Returns a duplicate 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 UnpaddingMode
impl Debug for UnpaddingMode
Source§impl Hash for UnpaddingMode
impl Hash for UnpaddingMode
Source§impl PartialEq for UnpaddingMode
impl PartialEq for UnpaddingMode
impl Copy for UnpaddingMode
impl Eq for UnpaddingMode
impl StructuralPartialEq for UnpaddingMode
Auto Trait Implementations§
impl Freeze for UnpaddingMode
impl RefUnwindSafe for UnpaddingMode
impl Send for UnpaddingMode
impl Sync for UnpaddingMode
impl Unpin for UnpaddingMode
impl UnwindSafe for UnpaddingMode
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