#[repr(u8)]pub enum EncryptionAlgorithm {
NotEncrypted = 3,
DiffieHellman = 6,
Xtea = 8,
Blowfish = 9,
Other = 255,
}
Expand description
Representation of first 1 byte in handshake.
Variants correspond to respectively following numbers:
Pattern | Number |
---|---|
NotEncrypted (Default) | 3 |
DiffieHellman | 6 |
Xtea | 8 |
Blowfish | 9 |
Other | other numbers |
Because of the design policy, the variant to be used actually will only be NotEncrypted
.
Other variants are prepared to keep their meaning of known numbers.
Variants§
Trait Implementations§
Source§impl Clone for EncryptionAlgorithm
impl Clone for EncryptionAlgorithm
Source§fn clone(&self) -> EncryptionAlgorithm
fn clone(&self) -> EncryptionAlgorithm
Returns a copy 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 EncryptionAlgorithm
impl Debug for EncryptionAlgorithm
Source§impl Default for EncryptionAlgorithm
impl Default for EncryptionAlgorithm
Source§fn default() -> EncryptionAlgorithm
fn default() -> EncryptionAlgorithm
Returns the “default value” for a type. Read more
Source§impl From<EncryptionAlgorithm> for u8
impl From<EncryptionAlgorithm> for u8
Source§fn from(encryption_algorithm: EncryptionAlgorithm) -> Self
fn from(encryption_algorithm: EncryptionAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<u8> for EncryptionAlgorithm
impl From<u8> for EncryptionAlgorithm
Source§impl PartialEq for EncryptionAlgorithm
impl PartialEq for EncryptionAlgorithm
impl Copy for EncryptionAlgorithm
impl Eq for EncryptionAlgorithm
impl StructuralPartialEq for EncryptionAlgorithm
Auto Trait Implementations§
impl Freeze for EncryptionAlgorithm
impl RefUnwindSafe for EncryptionAlgorithm
impl Send for EncryptionAlgorithm
impl Sync for EncryptionAlgorithm
impl Unpin for EncryptionAlgorithm
impl UnwindSafe for EncryptionAlgorithm
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