Enum ssh_key::certificate::CertType
source · #[repr(u32)]
pub enum CertType {
User,
Host,
}Available on crate feature
alloc only.Expand description
Types of OpenSSH certificates: user or host.
Variants§
Implementations§
Trait Implementations§
source§impl Encode for CertType
impl Encode for CertType
source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer.source§fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix.source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Self::Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Self::Error>
Encode this value, first prepending a
uint32 length prefix
set to Encode::encoded_len.source§impl Ord for CertType
impl Ord for CertType
source§impl PartialEq<CertType> for CertType
impl PartialEq<CertType> for CertType
source§impl PartialOrd<CertType> for CertType
impl PartialOrd<CertType> for CertType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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