Enum openpgp_card::card_do::TouchPolicy
source · [−]#[non_exhaustive]
pub enum TouchPolicy {
Off,
On,
Fixed,
Cached,
CachedFixed,
Unknown(u8),
}
Expand description
User interaction setting: is a ‘touch’ needed to perform an operation on the card? This setting is used in 4.4.3.6 User Interaction Flag (UIF)
See spec pg 24 and https://github.com/Yubico/yubikey-manager/blob/main/ykman/openpgp.py
Touch policies were introduced in YubiKey Version 4.2.0 with modes ON, OFF and FIXED. YubiKey Version >= 5.2.1 added support for modes CACHED and CACHED_FIXED.
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.
Off
On
Fixed
Cached
CachedFixed
Unknown(u8)
Trait Implementations
sourceimpl Display for TouchPolicy
impl Display for TouchPolicy
sourceimpl From<TouchPolicy> for u8
impl From<TouchPolicy> for u8
sourcefn from(tm: TouchPolicy) -> Self
fn from(tm: TouchPolicy) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for TouchPolicy
impl Send for TouchPolicy
impl Sync for TouchPolicy
impl Unpin for TouchPolicy
impl UnwindSafe for TouchPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more