Enum yubihsm::object::Type [−][src]
pub enum Type { Opaque, AuthKey, Asymmetric, WrapKey, HMACKey, Template, OTPAEADKey, }
Types of objects
Variants
Opaque
Raw data
AuthKey
Authentication keys for establishing sessions
Asymmetric
Asymmetric private keys
WrapKey
Key-wrapping key for exporting/importing keys
HMACKey
HMAC secret key
Template
Binary template used to validate SSH certificate requests
OTPAEADKey
Yubikey-AES OTP encryption/decryption key
Methods
impl Type
[src]
impl Type
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 ObjectType (if valid)
pub fn to_u8(self) -> u8
[src]
pub fn to_u8(self) -> u8
Serialize this object type as a byte
Trait Implementations
impl Copy for Type
[src]
impl Copy for Type
impl Clone for Type
[src]
impl Clone for Type
fn clone(&self) -> Type
[src]
fn clone(&self) -> Type
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Type
[src]
impl Debug for Type
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 Type
[src]
impl Eq for Type
impl PartialEq for Type
[src]
impl PartialEq for Type
fn eq(&self, other: &Type) -> bool
[src]
fn eq(&self, other: &Type) -> 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
1.0.0
[src]This method tests for !=
.
impl Serialize for Type
[src]
impl Serialize for Type
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 Type
[src]
impl<'de> Deserialize<'de> for Type
fn deserialize<D>(deserializer: D) -> Result<Type, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Type, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more