pub enum CryptTokenInfo {
    Invalid,
    Inactive,
    Internal(String),
    InternalUnknown(String),
    External(String),
    ExternalUnknown(String),
}
Expand description

Type representing the token status. This type wraps the CRYPT_TOKEN_* values and the optional corresponding token type as a string.

Variants

Invalid

Token invalid

Inactive

Token is free (empty)

Internal(String)

Active internal token with driver

InternalUnknown(String)

Active internal token (reserved name) with missing token driver

External(String)

Active external (user defined) token with driver

ExternalUnknown(String)

Active external (user defined) token with missing token driver

Implementations

Convert a token status code into CryptTokenInfo

Trait Implementations

Converts this type into the (usually inferred) 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.

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.