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