pub enum EncryptionScheme {
None,
Aes256Gcm,
ChaCha20Poly1305,
X25519Aes256Gcm,
}Expand description
Encryption schemes supported for messages.
Variants§
None
No encryption.
Aes256Gcm
AES-256-GCM symmetric encryption.
ChaCha20Poly1305
ChaCha20-Poly1305.
X25519Aes256Gcm
X25519 + AES-256-GCM.
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 (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 EncryptionScheme
Source§impl Debug for EncryptionScheme
impl Debug for EncryptionScheme
Source§impl Default for EncryptionScheme
impl Default for EncryptionScheme
Source§impl<'de> Deserialize<'de> for EncryptionScheme
impl<'de> Deserialize<'de> for EncryptionScheme
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 Display for EncryptionScheme
impl Display for EncryptionScheme
impl Eq for EncryptionScheme
Source§impl PartialEq for EncryptionScheme
impl PartialEq for EncryptionScheme
Source§impl Serialize for EncryptionScheme
impl Serialize 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 UnsafeUnpin 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