Enum Mode
#[repr(u8)]pub enum Mode {
Mode1 = 0,
Mode2 = 1,
Mode3 = 2,
Mode4 = 3,
}Variants§
Mode1 = 0
Encryption
Mode2 = 1
Key derivation (or key preparation for ECB/CBC decryption)
Mode3 = 2
Decryption
Mode4 = 3
Key derivation then single decryption
Implementations§
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
§impl Ord for Mode
impl Ord for Mode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Mode
impl PartialOrd for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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