#[non_exhaustive]pub enum SanType {
Rfc822Name(Ia5String),
DnsName(Ia5String),
URI(Ia5String),
IpAddress(IpAddr),
OtherName((Vec<u64>, OtherNameValue)),
}展开描述
主题备用名称(Subject Alternative Name)的类型
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
Rfc822Name(Ia5String)
也称为电子邮件地址
DnsName(Ia5String)
URI(Ia5String)
IpAddress(IpAddr)
OtherName((Vec<u64>, OtherNameValue))
Trait 实现§
impl Eq for SanType
impl StructuralPartialEq for SanType
自动 Trait 实现§
impl Freeze for SanType
impl RefUnwindSafe for SanType
impl Send for SanType
impl Sync for SanType
impl Unpin for SanType
impl UnsafeUnpin for SanType
impl UnwindSafe for SanType
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 from an owned value. 更多信息