Enum yubihsm::algorithm::TemplateAlg [−][src]
#[repr(u8)]pub enum TemplateAlg { SSH, }
Template algorithms (for SSH)
Variants
SSH
template-ssh
Methods
impl TemplateAlg
[src]
impl TemplateAlg
pub fn from_u8(tag: u8) -> Result<Self, AlgorithmError>
[src]
pub fn from_u8(tag: u8) -> Result<Self, AlgorithmError>
Convert an unsigned byte tag into a TemplateAlgorithm
(if valid)
pub fn to_u8(self) -> u8
[src]
pub fn to_u8(self) -> u8
Serialize algorithm ID as a byte
Trait Implementations
impl Copy for TemplateAlg
[src]
impl Copy for TemplateAlg
impl Clone for TemplateAlg
[src]
impl Clone for TemplateAlg
fn clone(&self) -> TemplateAlg
[src]
fn clone(&self) -> TemplateAlg
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 TemplateAlg
[src]
impl Debug for TemplateAlg
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 TemplateAlg
[src]
impl Eq for TemplateAlg
impl PartialEq for TemplateAlg
[src]
impl PartialEq for TemplateAlg
fn eq(&self, other: &TemplateAlg) -> bool
[src]
fn eq(&self, other: &TemplateAlg) -> 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 From<TemplateAlg> for Algorithm
[src]
impl From<TemplateAlg> for Algorithm
fn from(alg: TemplateAlg) -> Algorithm
[src]
fn from(alg: TemplateAlg) -> Algorithm
Performs the conversion.
impl Serialize for TemplateAlg
[src]
impl Serialize for TemplateAlg
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for TemplateAlg
[src]
impl<'de> Deserialize<'de> for TemplateAlg
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<TemplateAlg, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<TemplateAlg, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for TemplateAlg
impl Send for TemplateAlg
impl Sync for TemplateAlg
impl Sync for TemplateAlg