#[non_exhaustive]pub enum CertificateType {
X509,
RawPublicKey,
Unknown(u8),
}展开描述
此 CertificateType enum sent in the cert_type extensions.
此枚举中的值来自涵盖 TLS 的多个 RFC,由 IANA 列出。
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
实现§
Trait 实现§
Source§impl Clone for CertificateType
impl Clone for CertificateType
Source§fn clone(&self) -> CertificateType
fn clone(&self) -> CertificateType
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for CertificateType
impl Debug for CertificateType
Source§impl Default for CertificateType
impl Default for CertificateType
Source§fn default() -> CertificateType
fn default() -> CertificateType
Returns the “default value” 用于 一个 type. 更多信息
Source§impl From<CertificateType> for u8
impl From<CertificateType> for u8
Source§fn from(value: CertificateType) -> Self
fn from(value: CertificateType) -> Self
从输入类型转换为此类型。
Source§impl PartialEq for CertificateType
impl PartialEq for CertificateType
impl Copy for CertificateType
impl Eq for CertificateType
impl StructuralPartialEq for CertificateType
自动 Trait 实现§
impl Freeze for CertificateType
impl RefUnwindSafe for CertificateType
impl Send for CertificateType
impl Sync for CertificateType
impl Unpin for CertificateType
impl UnsafeUnpin for CertificateType
impl UnwindSafe for CertificateType
Blanket 实现§
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 从 an owned value. 更多信息