Enum yubihsm::CommandCode[][src]

#[repr(u8)]
pub enum CommandCode { 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 CommandCode
[src]

Convert an unsigned byte into a CommandCode (if valid)

Serialize a command as a byte

Trait Implementations

impl Copy for CommandCode
[src]

impl Clone for CommandCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CommandCode
[src]

Formats the value using the given formatter. Read more

impl Eq for CommandCode
[src]

impl PartialEq for CommandCode
[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 CommandCode
[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 CommandCode
[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 CommandCode
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for CommandCode

impl Sync for CommandCode