pub enum ExtendedKeyPurpose {
ClientAuth,
ServerAuth,
Other(Vec<usize>),
}展开描述
扩展密钥用法 (EKU) 用途值。
These are usually represented as OID values in 证书’s extension (if present), but we represent the values that are most relevant 到 rustls as named enum variants.
变体§
ClientAuth
客户端身份验证
ServerAuth
服务器身份认证
Other(Vec<usize>)
Other EKU values
Represented here as 一个 Vec<usize> 用于 human readability.
Trait 实现§
Source§impl Clone for ExtendedKeyPurpose
impl Clone for ExtendedKeyPurpose
Source§fn clone(&self) -> ExtendedKeyPurpose
fn clone(&self) -> ExtendedKeyPurpose
返回值的副本。 更多信息
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 ExtendedKeyPurpose
impl Debug for ExtendedKeyPurpose
Source§impl Display for ExtendedKeyPurpose
impl Display for ExtendedKeyPurpose
Source§impl PartialEq for ExtendedKeyPurpose
impl PartialEq for ExtendedKeyPurpose
impl Eq for ExtendedKeyPurpose
impl StructuralPartialEq for ExtendedKeyPurpose
自动 Trait 实现§
impl Freeze for ExtendedKeyPurpose
impl RefUnwindSafe for ExtendedKeyPurpose
impl Send for ExtendedKeyPurpose
impl Sync for ExtendedKeyPurpose
impl Unpin for ExtendedKeyPurpose
impl UnsafeUnpin for ExtendedKeyPurpose
impl UnwindSafe for ExtendedKeyPurpose
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. 更多信息