pub enum Mode {
mode_base,
mode_psk,
mode_auth,
mode_auth_psk,
}
Expand description
A one-byte value indicating the HPKE mode, defined in the following table.
Mode | Value |
---|---|
mode_base | 0x00 |
mode_psk | 0x01 |
mode_auth | 0x02 |
mode_auth_psk | 0x03 |
Variants
mode_base
0x00
mode_psk
0x01
mode_auth
0x02
mode_auth_psk
0x03
Trait Implementations
impl Copy for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more