Enum libyubihsm::DeviceOption
[−]
[src]
pub enum DeviceOption { ForceAudit(DeviceOptionValue), CommandAudit(Vec<(CommandType, DeviceOptionValue)>), }
A global option for the device. See Yubico's documentation for more.
Variants
ForceAudit(DeviceOptionValue)
Whether or not the device should refuse operations when the log store is full.
CommandAudit(Vec<(CommandType, DeviceOptionValue)>)
Used to toggle which specific commands should be logged. Accepts tuples of command and option value.
Trait Implementations
impl Clone for DeviceOption
[src]
fn clone(&self) -> DeviceOption
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for DeviceOption
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> From<&'a DeviceOption> for u8
[src]
fn from(opt: &'a DeviceOption) -> u8
[src]
Performs the conversion.
impl From<DeviceOption> for u8
[src]
fn from(opt: DeviceOption) -> u8
[src]
Performs the conversion.