#[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

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.