[][src]Enum yubihsm::CommandCode

#[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 Clone for CommandCode
[src]

Performs copy-assignment from source. Read more

impl Copy for CommandCode
[src]

impl Eq for CommandCode
[src]

impl PartialOrd<CommandCode> for CommandCode
[src]

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

This method tests for !=.

impl Ord for CommandCode
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Debug for CommandCode
[src]

impl Serialize for CommandCode
[src]

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

Auto Trait Implementations

impl Send for CommandCode

impl Sync for CommandCode

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Same for T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]