#[non_exhaustive]pub enum OperatingMode {
CBC,
CTR,
CFB128,
ECB,
}
Expand description
The cipher operating mode.
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.
CBC
Cipher block chaining (CBC) mode.
CTR
Counter (CTR) mode.
CFB128
CFB 128-bit mode.
ECB
Electronic Code Book (ECB) mode.
Trait Implementations§
Source§impl Clone for OperatingMode
impl Clone for OperatingMode
Source§fn clone(&self) -> OperatingMode
fn clone(&self) -> OperatingMode
Returns a copy 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 OperatingMode
impl Debug for OperatingMode
Source§impl PartialEq for OperatingMode
impl PartialEq for OperatingMode
impl Copy for OperatingMode
impl Eq for OperatingMode
impl StructuralPartialEq for OperatingMode
Auto Trait Implementations§
impl Freeze for OperatingMode
impl RefUnwindSafe for OperatingMode
impl Send for OperatingMode
impl Sync for OperatingMode
impl Unpin for OperatingMode
impl UnwindSafe for OperatingMode
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