#[non_exhaustive]pub enum EncryptionField {
NoEncryption,
Aes128,
Aes192,
Aes256,
Reserved(u16),
}Expand description
Encryption Field: block cipher family and key size advertised in the
handshake (draft-sharabayko-srt-01 §3.2.1, Table 2).
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.
NoEncryption
0: no encryption advertised.
Aes128
2: AES-128 (the default).
Aes192
3: AES-192.
Aes256
4: AES-256.
Reserved(u16)
A value Table 2 does not define (includes 1).
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionField
impl Clone for EncryptionField
Source§fn clone(&self) -> EncryptionField
fn clone(&self) -> EncryptionField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncryptionField
Source§impl Debug for EncryptionField
impl Debug for EncryptionField
Source§impl Display for EncryptionField
impl Display for EncryptionField
impl Eq for EncryptionField
Source§impl Hash for EncryptionField
impl Hash for EncryptionField
Source§impl PartialEq for EncryptionField
impl PartialEq for EncryptionField
Source§impl Serialize for EncryptionField
Available on crate feature serde only.
impl Serialize for EncryptionField
Available on crate feature
serde only.impl StructuralPartialEq for EncryptionField
Auto Trait Implementations§
impl Freeze for EncryptionField
impl RefUnwindSafe for EncryptionField
impl Send for EncryptionField
impl Sync for EncryptionField
impl Unpin for EncryptionField
impl UnsafeUnpin for EncryptionField
impl UnwindSafe for EncryptionField
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