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
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
Methods
impl CommandCode
[src]
impl CommandCode
pub fn from_u8(byte: u8) -> Result<Self, Error>
[src]
pub fn from_u8(byte: u8) -> Result<Self, Error>
Convert an unsigned byte into a CommandCode
(if valid)
pub fn to_u8(self) -> u8
[src]
pub fn to_u8(self) -> u8
Serialize a command as a byte
Trait Implementations
impl Copy for CommandCode
[src]
impl Copy for CommandCode
impl Clone for CommandCode
[src]
impl Clone for CommandCode
fn clone(&self) -> CommandCode
[src]
fn clone(&self) -> CommandCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for CommandCode
[src]
impl Debug for CommandCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for CommandCode
[src]
impl Eq for CommandCode
impl PartialEq for CommandCode
[src]
impl PartialEq for CommandCode
fn eq(&self, other: &CommandCode) -> bool
[src]
fn eq(&self, other: &CommandCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd for CommandCode
[src]
impl PartialOrd for CommandCode
fn partial_cmp(&self, other: &CommandCode) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &CommandCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
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]
impl Ord for CommandCode
fn cmp(&self, other: &CommandCode) -> Ordering
[src]
fn cmp(&self, other: &CommandCode) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Serialize for CommandCode
[src]
impl Serialize for CommandCode
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for CommandCode
[src]
impl<'de> Deserialize<'de> for CommandCode
fn deserialize<D>(deserializer: D) -> Result<CommandCode, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<CommandCode, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for CommandCode
impl Send for CommandCode
impl Sync for CommandCode
impl Sync for CommandCode