#[repr(u8)]pub enum CertificateType {
X509 = 0,
RawPublicKey = 2,
}
Expand description
Certificate type values as defined in RFC 7250 and IANA registry
Variants§
X509 = 0
X.509 certificate (traditional PKI certificates)
RawPublicKey = 2
Raw Public Key (RFC 7250)
Implementations§
Source§impl CertificateType
impl CertificateType
Sourcepub fn from_u8(value: u8) -> Result<Self, TlsExtensionError>
pub fn from_u8(value: u8) -> Result<Self, TlsExtensionError>
Parse certificate type from wire format
Sourcepub fn is_raw_public_key(self) -> bool
pub fn is_raw_public_key(self) -> bool
Check if this certificate type is Raw Public Key
Trait Implementations§
Source§impl Clone for CertificateType
impl Clone for CertificateType
Source§fn clone(&self) -> CertificateType
fn clone(&self) -> CertificateType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CertificateType
impl Debug for CertificateType
Source§impl<'de> Deserialize<'de> for CertificateType
impl<'de> Deserialize<'de> for CertificateType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CertificateType
impl Display for CertificateType
Source§impl Hash for CertificateType
impl Hash for CertificateType
Source§impl PartialEq for CertificateType
impl PartialEq for CertificateType
Source§impl Serialize for CertificateType
impl Serialize for CertificateType
impl Copy for CertificateType
impl Eq for CertificateType
impl StructuralPartialEq for CertificateType
Auto Trait Implementations§
impl Freeze for CertificateType
impl RefUnwindSafe for CertificateType
impl Send for CertificateType
impl Sync for CertificateType
impl Unpin for CertificateType
impl UnwindSafe for CertificateType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.