#[non_exhaustive]pub enum SignatureScheme {
Show 17 variants
RSA_PKCS1_SHA1,
ECDSA_SHA1_Legacy,
RSA_PKCS1_SHA256,
ECDSA_NISTP256_SHA256,
RSA_PKCS1_SHA384,
ECDSA_NISTP384_SHA384,
RSA_PKCS1_SHA512,
ECDSA_NISTP521_SHA512,
RSA_PSS_SHA256,
RSA_PSS_SHA384,
RSA_PSS_SHA512,
ED25519,
ED448,
ML_DSA_44,
ML_DSA_65,
ML_DSA_87,
Unknown(u16),
}展开描述
此 SignatureScheme 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
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
RSA_PKCS1_SHA1
ECDSA_SHA1_Legacy
RSA_PKCS1_SHA256
ECDSA_NISTP256_SHA256
RSA_PKCS1_SHA384
ECDSA_NISTP384_SHA384
RSA_PKCS1_SHA512
ECDSA_NISTP521_SHA512
RSA_PSS_SHA256
RSA_PSS_SHA384
RSA_PSS_SHA512
ED25519
ED448
ML_DSA_44
ML_DSA_65
ML_DSA_87
Unknown(u16)
实现§
Trait 实现§
Source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
返回值的副本。 更多信息
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 SignatureScheme
impl Debug for SignatureScheme
Source§impl From<SignatureScheme> for u16
impl From<SignatureScheme> for u16
Source§fn from(value: SignatureScheme) -> Self
fn from(value: SignatureScheme) -> Self
从输入类型转换为此类型。
Source§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
impl Copy for SignatureScheme
impl Eq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
自动 Trait 实现§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnsafeUnpin for SignatureScheme
impl UnwindSafe for SignatureScheme
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. 更多信息