#[repr(u8)]pub enum EncryptionKind {
None = 0,
ChaCha20 = 1,
Aes256 = 2,
}Expand description
Selects how the payload section of a frame is encoded.
Variants§
None = 0
Unencrypted JSON payload.
ChaCha20 = 1
ChaCha20-Poly1305 encrypted payload.
Aes256 = 2
AES256-GCM encrypted payload.
Trait Implementations§
Source§impl Clone for EncryptionKind
impl Clone for EncryptionKind
Source§fn clone(&self) -> EncryptionKind
fn clone(&self) -> EncryptionKind
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 EncryptionKind
impl Debug for EncryptionKind
Source§impl<'de> Deserialize<'de> for EncryptionKind
impl<'de> Deserialize<'de> for EncryptionKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EncryptionKind
impl PartialEq for EncryptionKind
Source§impl Serialize for EncryptionKind
impl Serialize for EncryptionKind
Source§impl TryFrom<u8> for EncryptionKind
impl TryFrom<u8> for EncryptionKind
impl Copy for EncryptionKind
impl Eq for EncryptionKind
impl StructuralPartialEq for EncryptionKind
Auto Trait Implementations§
impl Freeze for EncryptionKind
impl RefUnwindSafe for EncryptionKind
impl Send for EncryptionKind
impl Sync for EncryptionKind
impl Unpin for EncryptionKind
impl UnsafeUnpin for EncryptionKind
impl UnwindSafe for EncryptionKind
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