#[non_exhaustive]#[repr(u32)]pub enum Mode {
ECB = 1,
CBC = 2,
CFB = 3,
CTR = 4,
OFB = 7,
XTS = 8,
CFB8 = 10,
}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.
ECB = 1
CBC = 2
CFB = 3
CTR = 4
OFB = 7
XTS = 8
CFB8 = 10
Must be specified for RC4, and must not be specified for others.
Trait Implementations§
impl Copy 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 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