pub enum E2eEncryptionPolicy {
PreferOff,
PreferOn,
RequireOn,
}Expand description
End-to-end cryptography preference for a data type.
Variants§
PreferOff
Send unencrypted unless a router-level policy forces cryptography.
PreferOn
Encrypt when the local router supports E2E cryptography, but allow plaintext fallback.
RequireOn
Require E2E cryptography support before sending or locally consuming this type.
Trait Implementations§
Source§impl Clone for E2eEncryptionPolicy
impl Clone for E2eEncryptionPolicy
Source§fn clone(&self) -> E2eEncryptionPolicy
fn clone(&self) -> E2eEncryptionPolicy
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 E2eEncryptionPolicy
Source§impl Debug for E2eEncryptionPolicy
impl Debug for E2eEncryptionPolicy
impl Eq for E2eEncryptionPolicy
Source§impl Hash for E2eEncryptionPolicy
impl Hash for E2eEncryptionPolicy
Source§impl Ord for E2eEncryptionPolicy
impl Ord for E2eEncryptionPolicy
Source§fn cmp(&self, other: &E2eEncryptionPolicy) -> Ordering
fn cmp(&self, other: &E2eEncryptionPolicy) -> Ordering
1.21.0 (const: unstable) · 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 E2eEncryptionPolicy
impl PartialEq for E2eEncryptionPolicy
Source§fn eq(&self, other: &E2eEncryptionPolicy) -> bool
fn eq(&self, other: &E2eEncryptionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for E2eEncryptionPolicy
impl PartialOrd for E2eEncryptionPolicy
impl StructuralPartialEq for E2eEncryptionPolicy
Auto Trait Implementations§
impl Freeze for E2eEncryptionPolicy
impl RefUnwindSafe for E2eEncryptionPolicy
impl Send for E2eEncryptionPolicy
impl Sync for E2eEncryptionPolicy
impl Unpin for E2eEncryptionPolicy
impl UnsafeUnpin for E2eEncryptionPolicy
impl UnwindSafe for E2eEncryptionPolicy
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