#[repr(u16)]pub enum OnlineCiphertextVersion {
Latest = 0,
V1 = 1,
}
Expand description
The versions of the online encryption scheme to use.
Variants§
Latest = 0
Uses the latest version.
V1 = 1
Uses version 1: XChaCha20-Poly1305 wrapped in a STREAM construction.
Trait Implementations§
Source§impl Clone for OnlineCiphertextVersion
impl Clone for OnlineCiphertextVersion
Source§fn clone(&self) -> OnlineCiphertextVersion
fn clone(&self) -> OnlineCiphertextVersion
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 OnlineCiphertextVersion
impl Debug for OnlineCiphertextVersion
Source§impl Default for OnlineCiphertextVersion
impl Default for OnlineCiphertextVersion
Source§impl From<OnlineCiphertextVersion> for u16
impl From<OnlineCiphertextVersion> for u16
Source§fn from(enum_value: OnlineCiphertextVersion) -> Self
fn from(enum_value: OnlineCiphertextVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OnlineCiphertextVersion
impl PartialEq for OnlineCiphertextVersion
Source§impl TryFrom<u16> for OnlineCiphertextVersion
impl TryFrom<u16> for OnlineCiphertextVersion
Source§type Error = TryFromPrimitiveError<OnlineCiphertextVersion>
type Error = TryFromPrimitiveError<OnlineCiphertextVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OnlineCiphertextVersion
impl TryFromPrimitive for OnlineCiphertextVersion
const NAME: &'static str = "OnlineCiphertextVersion"
type Primitive = u16
type Error = TryFromPrimitiveError<OnlineCiphertextVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl Zeroize for OnlineCiphertextVersion
impl Zeroize for OnlineCiphertextVersion
impl Copy for OnlineCiphertextVersion
impl Eq for OnlineCiphertextVersion
impl StructuralPartialEq for OnlineCiphertextVersion
Auto Trait Implementations§
impl Freeze for OnlineCiphertextVersion
impl RefUnwindSafe for OnlineCiphertextVersion
impl Send for OnlineCiphertextVersion
impl Sync for OnlineCiphertextVersion
impl Unpin for OnlineCiphertextVersion
impl UnwindSafe for OnlineCiphertextVersion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.