#[non_exhaustive]pub enum HashAlgorithm {
NONE,
MD5,
SHA1,
SHA224,
SHA256,
SHA384,
SHA512,
Unknown(u8),
}展开描述
此 HashAlgorithm TLS 协议枚举。 Values in this enum are taken
从 the various RFCs covering TLS, 并 are listed by IANA.
此 Unknown item is 用 when processing unrecognised ordinals.
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
实现§
Trait 实现§
Source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
Source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
返回值的副本。 更多信息
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 HashAlgorithm
impl Debug for HashAlgorithm
Source§impl From<HashAlgorithm> for u8
impl From<HashAlgorithm> for u8
Source§fn from(value: HashAlgorithm) -> Self
fn from(value: HashAlgorithm) -> Self
从输入类型转换为此类型。
Source§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
impl Copy for HashAlgorithm
impl Eq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
自动 Trait 实现§
impl Freeze for HashAlgorithm
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnsafeUnpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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. 更多信息