#[repr(u16)]pub enum CiphertextVersion {
Latest = 0,
V1 = 1,
V2 = 2,
}
Expand description
The versions of the encryption scheme to use.
Variants§
Latest = 0
Uses the latest version.
V1 = 1
Uses version 1: AES256-CBC-HMAC-SHA2-256.
V2 = 2
Uses version 2: XChaCha20-Poly1305.
Trait Implementations§
source§impl Clone for CiphertextVersion
impl Clone for CiphertextVersion
source§fn clone(&self) -> CiphertextVersion
fn clone(&self) -> CiphertextVersion
Returns a copy 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 CiphertextVersion
impl Debug for CiphertextVersion
source§impl Default for CiphertextVersion
impl Default for CiphertextVersion
source§impl From<CiphertextVersion> for u16
impl From<CiphertextVersion> for u16
source§fn from(enum_value: CiphertextVersion) -> Self
fn from(enum_value: CiphertextVersion) -> Self
Converts to this type from the input type.
source§impl PartialEq for CiphertextVersion
impl PartialEq for CiphertextVersion
source§fn eq(&self, other: &CiphertextVersion) -> bool
fn eq(&self, other: &CiphertextVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for CiphertextVersion
impl TryFrom<u16> for CiphertextVersion
§type Error = TryFromPrimitiveError<CiphertextVersion>
type Error = TryFromPrimitiveError<CiphertextVersion>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for CiphertextVersion
impl TryFromPrimitive for CiphertextVersion
source§impl Zeroize for CiphertextVersion
impl Zeroize for CiphertextVersion
impl Copy for CiphertextVersion
impl Eq for CiphertextVersion
impl StructuralEq for CiphertextVersion
impl StructuralPartialEq for CiphertextVersion
Auto Trait Implementations§
impl RefUnwindSafe for CiphertextVersion
impl Send for CiphertextVersion
impl Sync for CiphertextVersion
impl Unpin for CiphertextVersion
impl UnwindSafe for CiphertextVersion
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