#[repr(u8)]pub enum KeyVersion {
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5,
V6 = 6,
Other(u8),
}
Variants§
Implementations§
Source§impl KeyVersion
impl KeyVersion
Sourcepub const fn fingerprint_len(&self) -> Option<usize>
pub const fn fingerprint_len(&self) -> Option<usize>
Size of OpenPGP fingerprint in bytes
(returns None
for unknown versions)
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 · 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
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