Enum devolutions_crypto::KeyVersion
source · #[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 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 KeyVersion
impl Debug for KeyVersion
source§impl Default for KeyVersion
impl Default 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
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u16> for KeyVersion
impl TryFrom<u16> for KeyVersion
§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
source§impl Zeroize for KeyVersion
impl Zeroize for KeyVersion
impl Copy for KeyVersion
impl Eq for KeyVersion
impl StructuralEq for KeyVersion
impl StructuralPartialEq for KeyVersion
Auto Trait Implementations§
impl RefUnwindSafe for KeyVersion
impl Send for KeyVersion
impl Sync for KeyVersion
impl Unpin 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