Enum pgp::types::KeyVersion
source · #[repr(u8)]pub enum KeyVersion {
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5,
Other(u8),
}
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 u8
impl From<KeyVersion> for u8
source§fn from(enum_value: KeyVersion) -> Self
fn from(enum_value: KeyVersion) -> Self
Converts to this type from the input type.
source§impl From<u8> for KeyVersion
impl From<u8> for KeyVersion
source§impl FromPrimitive for KeyVersion
impl FromPrimitive for KeyVersion
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 ==
.impl Copy for KeyVersion
impl Eq for KeyVersion
impl StructuralPartialEq for KeyVersion
Auto Trait Implementations§
impl Freeze for KeyVersion
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