Enum yubihsm::commands::CommandType[][src]

#[repr(u8)]
pub enum CommandType { Unknown, Echo, CreateSession, AuthSession, SessionMessage, DeviceInfo, BSL, Reset, Command9, CloseSession, StorageStatus, PutOpaqueObject, GetOpaqueObject, PutAuthKey, PutAsymmetricKey, GenerateAsymmetricKey, SignDataPKCS1, ListObjects, DecryptPKCS1, ExportWrapped, ImportWrapped, PutWrapKey, GetLogs, GetObjectInfo, PutOption, GetOption, GetPseudoRandom, PutHMACKey, HMACData, GetPubKey, SignDataPSS, SignDataECDSA, DecryptECDH, DeleteObject, DecryptOAEP, GenerateHMACKey, GenerateWrapKey, VerifyHMAC, SSHCertify, PutTemplate, GetTemplate, DecryptOTP, CreateOTPAEAD, RandomOTPAEAD, RewrapOTPAEAD, AttestAsymmetric, PutOTPAEAD, GenerateOTPAEAD, SetLogIndex, WrapData, UnwrapData, SignDataEdDSA, Blink, Error, }

Command IDs for YubiHSM2 operations

Variants

Methods

impl CommandType
[src]

Convert an unsigned byte into a CommandType (if valid)

Serialize a command as a byte

Trait Implementations

impl Copy for CommandType
[src]

impl Clone for CommandType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CommandType
[src]

Formats the value using the given formatter. Read more

impl Eq for CommandType
[src]

impl PartialEq for CommandType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for CommandType
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for CommandType
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Serialize for CommandType
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for CommandType
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for CommandType

impl Sync for CommandType