pub enum CipherKind {
Xchacha20poly1305,
Aes256gcm,
}Expand description
AEAD cipher selection for EncryptionConfig.
Variants§
Xchacha20poly1305
XChaCha20-Poly1305 (default): 192-bit random nonce, safe at high message rates.
Aes256gcm
AES-256-GCM: 96-bit random nonce; prefer the default for very high volumes.
Trait Implementations§
Source§impl Clone for CipherKind
impl Clone for CipherKind
Source§fn clone(&self) -> CipherKind
fn clone(&self) -> CipherKind
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 CipherKind
Source§impl Debug for CipherKind
impl Debug for CipherKind
Source§impl Default for CipherKind
impl Default for CipherKind
Source§fn default() -> CipherKind
fn default() -> CipherKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CipherKind
impl<'de> Deserialize<'de> for CipherKind
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
impl Eq for CipherKind
Source§impl PartialEq for CipherKind
impl PartialEq for CipherKind
Source§impl Serialize for CipherKind
impl Serialize for CipherKind
impl StructuralPartialEq for CipherKind
Auto Trait Implementations§
impl Freeze for CipherKind
impl RefUnwindSafe for CipherKind
impl Send for CipherKind
impl Sync for CipherKind
impl Unpin for CipherKind
impl UnsafeUnpin for CipherKind
impl UnwindSafe for CipherKind
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