pub enum HardwareToken {
YubiKeyPiv {
slot: String,
pin_policy: PinPolicy,
},
YubiKeyOpenpgp {
slot: OpenpgpSlot,
},
OpenpgpCard {
card_id: String,
slot: OpenpgpSlot,
},
Tpm {
handle: u32,
},
}Expand description
A hardware token holding one or more keys.
Variants§
YubiKeyPiv
YubiKey PIV applet (PKCS#11 interface).
YubiKeyOpenpgp
YubiKey OpenPGP applet (OpenPGP card interface).
Fields
§
slot: OpenpgpSlotOpenPGP key slot (sig, dec, aut).
OpenpgpCard
Any OpenPGP card v3+ device (YubiKey, Nitrokey, Gnuk).
Fields
§
slot: OpenpgpSlotOpenPGP key slot.
Tpm
TPM 2.0 sealed key.
Trait Implementations§
Source§impl Clone for HardwareToken
impl Clone for HardwareToken
Source§fn clone(&self) -> HardwareToken
fn clone(&self) -> HardwareToken
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 moreSource§impl Debug for HardwareToken
impl Debug for HardwareToken
Source§impl<'de> Deserialize<'de> for HardwareToken
impl<'de> Deserialize<'de> for HardwareToken
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
Auto Trait Implementations§
impl Freeze for HardwareToken
impl RefUnwindSafe for HardwareToken
impl Send for HardwareToken
impl Sync for HardwareToken
impl Unpin for HardwareToken
impl UnsafeUnpin for HardwareToken
impl UnwindSafe for HardwareToken
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