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