#[repr(u16)]pub enum KdfEncryptedDataVersion {
Latest = 0,
V1 = 1,
}Expand description
The versions of the KDF-encrypt scheme to use.
Variants§
Trait Implementations§
Source§impl Clone for KdfEncryptedDataVersion
impl Clone for KdfEncryptedDataVersion
Source§fn clone(&self) -> KdfEncryptedDataVersion
fn clone(&self) -> KdfEncryptedDataVersion
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 KdfEncryptedDataVersion
Source§impl Debug for KdfEncryptedDataVersion
impl Debug for KdfEncryptedDataVersion
Source§impl Default for KdfEncryptedDataVersion
impl Default for KdfEncryptedDataVersion
Source§fn default() -> KdfEncryptedDataVersion
fn default() -> KdfEncryptedDataVersion
Returns the “default value” for a type. Read more
impl Eq for KdfEncryptedDataVersion
Source§impl From<KdfEncryptedDataVersion> for u16
impl From<KdfEncryptedDataVersion> for u16
Source§fn from(enum_value: KdfEncryptedDataVersion) -> Self
fn from(enum_value: KdfEncryptedDataVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KdfEncryptedDataVersion
impl PartialEq for KdfEncryptedDataVersion
Source§fn eq(&self, other: &KdfEncryptedDataVersion) -> bool
fn eq(&self, other: &KdfEncryptedDataVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KdfEncryptedDataVersion
Source§impl TryFrom<u16> for KdfEncryptedDataVersion
impl TryFrom<u16> for KdfEncryptedDataVersion
Source§type Error = TryFromPrimitiveError<KdfEncryptedDataVersion>
type Error = TryFromPrimitiveError<KdfEncryptedDataVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for KdfEncryptedDataVersion
impl TryFromPrimitive for KdfEncryptedDataVersion
const NAME: &'static str = "KdfEncryptedDataVersion"
type Primitive = u16
type Error = TryFromPrimitiveError<KdfEncryptedDataVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for KdfEncryptedDataVersion
impl RefUnwindSafe for KdfEncryptedDataVersion
impl Send for KdfEncryptedDataVersion
impl Sync for KdfEncryptedDataVersion
impl Unpin for KdfEncryptedDataVersion
impl UnsafeUnpin for KdfEncryptedDataVersion
impl UnwindSafe for KdfEncryptedDataVersion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.