pub enum EncryptionMode {
Plain,
Aegis256,
Aes256Gcm,
}Variants§
Plain
Plaintext (no encryption).
Aegis256
AEGIS-256 authenticated encryption.
Aes256Gcm
AES-256-GCM authenticated encryption.
Trait Implementations§
Source§impl Clone for EncryptionMode
impl Clone for EncryptionMode
Source§fn clone(&self) -> EncryptionMode
fn clone(&self) -> EncryptionMode
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 EncryptionMode
impl Debug for EncryptionMode
Source§impl<'de> Deserialize<'de> for EncryptionMode
impl<'de> Deserialize<'de> for EncryptionMode
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 From<EncryptionMode> for EncryptionMode
impl From<EncryptionMode> for EncryptionMode
Source§fn from(value: EncryptionMode) -> Self
fn from(value: EncryptionMode) -> Self
Converts to this type from the input type.
Source§impl From<EncryptionMode> for EncryptionMode
impl From<EncryptionMode> for EncryptionMode
Source§fn from(value: EncryptionMode) -> Self
fn from(value: EncryptionMode) -> Self
Converts to this type from the input type.
Source§impl Hash for EncryptionMode
impl Hash for EncryptionMode
Source§impl Ord for EncryptionMode
impl Ord for EncryptionMode
Source§fn cmp(&self, other: &EncryptionMode) -> Ordering
fn cmp(&self, other: &EncryptionMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EncryptionMode
impl PartialEq for EncryptionMode
Source§impl PartialOrd for EncryptionMode
impl PartialOrd for EncryptionMode
Source§impl Serialize for EncryptionMode
impl Serialize for EncryptionMode
impl Copy for EncryptionMode
impl Eq for EncryptionMode
impl StructuralPartialEq for EncryptionMode
Auto Trait Implementations§
impl Freeze for EncryptionMode
impl RefUnwindSafe for EncryptionMode
impl Send for EncryptionMode
impl Sync for EncryptionMode
impl Unpin for EncryptionMode
impl UnsafeUnpin for EncryptionMode
impl UnwindSafe for EncryptionMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more