#[non_exhaustive]pub enum PaddingMode {
None,
}Expand description
Padding mode for encryption.
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), and
you chose no padding, you need to ensure that 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 PaddingMode
impl Clone for PaddingMode
Source§fn clone(&self) -> PaddingMode
fn clone(&self) -> PaddingMode
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 PaddingMode
impl Debug for PaddingMode
Source§impl Hash for PaddingMode
impl Hash for PaddingMode
Source§impl PartialEq for PaddingMode
impl PartialEq for PaddingMode
impl Copy for PaddingMode
impl Eq for PaddingMode
impl StructuralPartialEq for PaddingMode
Auto Trait Implementations§
impl Freeze for PaddingMode
impl RefUnwindSafe for PaddingMode
impl Send for PaddingMode
impl Sync for PaddingMode
impl Unpin for PaddingMode
impl UnwindSafe for PaddingMode
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