pub struct SlotInfo { /* private fields */ }
Expand description
Information about a slot
Implementations§
source§impl SlotInfo
impl SlotInfo
sourcepub fn slot_description(&self) -> &str
pub fn slot_description(&self) -> &str
String description of the slot
Conformance: This string is maximally 64 bytes (not chars) as UTF-8
sourcepub fn manufacturer_id(&self) -> &str
pub fn manufacturer_id(&self) -> &str
ID of the slot manufacturer
Conformance: This string is maximally 32 bytes (not chars) as UTF-8
sourcepub fn token_present(&self) -> bool
pub fn token_present(&self) -> bool
True if a token is in the slot (e.g., a device is in the reader).
Conformance:
If this slot does not represent a removable device, a token is always
considered to be present. That is, slot.removable_device() == false
implies slot.token_present() == true
.
sourcepub fn removable_device(&self) -> bool
pub fn removable_device(&self) -> bool
True if the reader supports removable devices.
Conformance: For a given slot, this flag never changes
sourcepub fn hardware_slot(&self) -> bool
pub fn hardware_slot(&self) -> bool
True if the slot is a hardware slot, as opposed to a software slot implementing a “soft token”
sourcepub fn hardware_version(&self) -> Version
pub fn hardware_version(&self) -> Version
Version number of the slot’s hardware
sourcepub fn firmware_version(&self) -> Version
pub fn firmware_version(&self) -> Version
Version number of the slot’s firmware
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SlotInfo
impl Send for SlotInfo
impl Sync for SlotInfo
impl Unpin for SlotInfo
impl UnwindSafe for SlotInfo
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