pub enum IdSource {
Usb,
Ccid,
}Expand description
How a key’s serial is obtained — recorded for display/diagnostics. Matching is always by serial-string equality regardless of source.
Variants§
Usb
USB iSerialNumber (read from sysfs; SoloKeys, Nitrokey, …).
Ccid
Serial read from a vendor management applet over CCID (e.g. YubiKey).
Trait Implementations§
impl Copy for IdSource
Source§impl<'de> Deserialize<'de> for IdSource
impl<'de> Deserialize<'de> for IdSource
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 IdSource
impl StructuralPartialEq for IdSource
Auto Trait Implementations§
impl Freeze for IdSource
impl RefUnwindSafe for IdSource
impl Send for IdSource
impl Sync for IdSource
impl Unpin for IdSource
impl UnsafeUnpin for IdSource
impl UnwindSafe for IdSource
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