#[non_exhaustive]pub enum PivKeyOrigin {
Generated,
Imported,
Unknown,
}Expand description
Origin of a key in a PIV slot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generated
Key was generated on the device (GENERATE ASYMMETRIC KEY PAIR command). [NIST SP 800-73-5 Part 2, §3.1]
Imported
Key was imported from external material.
Unknown
Origin unknown (card doesn’t report this information).
Trait Implementations§
Source§impl Clone for PivKeyOrigin
impl Clone for PivKeyOrigin
Source§fn clone(&self) -> PivKeyOrigin
fn clone(&self) -> PivKeyOrigin
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 PivKeyOrigin
Source§impl Debug for PivKeyOrigin
impl Debug for PivKeyOrigin
Source§impl<'de> Deserialize<'de> for PivKeyOrigin
impl<'de> Deserialize<'de> for PivKeyOrigin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PivKeyOrigin
Source§impl PartialEq for PivKeyOrigin
impl PartialEq for PivKeyOrigin
Source§fn eq(&self, other: &PivKeyOrigin) -> bool
fn eq(&self, other: &PivKeyOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PivKeyOrigin
impl Serialize for PivKeyOrigin
impl StructuralPartialEq for PivKeyOrigin
Auto Trait Implementations§
impl Freeze for PivKeyOrigin
impl RefUnwindSafe for PivKeyOrigin
impl Send for PivKeyOrigin
impl Sync for PivKeyOrigin
impl Unpin for PivKeyOrigin
impl UnsafeUnpin for PivKeyOrigin
impl UnwindSafe for PivKeyOrigin
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