#[repr(i32)]pub enum EncryptionScheme {
None = 0,
EphemeralDh = 1,
}
Expand description
Represents an encryption scheme.
Variants§
None = 0
Indicates the payload
is unencrypted.
EphemeralDh = 1
Indicates the payload
is encrypted using AES and the Ephemeral
Diffie-Hellman style protocol key exchange, specifically HMAC(sdG, salt)
.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionScheme
impl Clone for EncryptionScheme
Source§fn clone(&self) -> EncryptionScheme
fn clone(&self) -> EncryptionScheme
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 EncryptionScheme
impl Debug for EncryptionScheme
Source§impl Default for EncryptionScheme
impl Default for EncryptionScheme
Source§fn default() -> EncryptionScheme
fn default() -> EncryptionScheme
Returns the “default value” for a type. Read more
Source§impl From<EncryptionScheme> for i32
impl From<EncryptionScheme> for i32
Source§fn from(value: EncryptionScheme) -> i32
fn from(value: EncryptionScheme) -> i32
Converts to this type from the input type.
Source§impl Hash for EncryptionScheme
impl Hash for EncryptionScheme
Source§impl Ord for EncryptionScheme
impl Ord for EncryptionScheme
Source§fn cmp(&self, other: &EncryptionScheme) -> Ordering
fn cmp(&self, other: &EncryptionScheme) -> Ordering
1.21.0 · 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
Source§impl PartialEq for EncryptionScheme
impl PartialEq for EncryptionScheme
Source§impl PartialOrd for EncryptionScheme
impl PartialOrd for EncryptionScheme
impl Copy for EncryptionScheme
impl Eq for EncryptionScheme
impl StructuralPartialEq for EncryptionScheme
Auto Trait Implementations§
impl Freeze for EncryptionScheme
impl RefUnwindSafe for EncryptionScheme
impl Send for EncryptionScheme
impl Sync for EncryptionScheme
impl Unpin for EncryptionScheme
impl UnwindSafe for EncryptionScheme
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