#[non_exhaustive]pub enum HandshakeType {
Show 21 variants
HelloRequest,
ClientHello,
ServerHello,
HelloVerifyRequest,
NewSessionTicket,
EndOfEarlyData,
HelloRetryRequest,
EncryptedExtensions,
Certificate,
ServerKeyExchange,
CertificateRequest,
ServerHelloDone,
CertificateVerify,
ClientKeyExchange,
Finished,
CertificateURL,
CertificateStatus,
KeyUpdate,
CompressedCertificate,
MessageHash,
Unknown(u8),
}展开描述
此 HandshakeType 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
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
HelloRequest
ClientHello
ServerHello
HelloVerifyRequest
NewSessionTicket
EndOfEarlyData
HelloRetryRequest
EncryptedExtensions
Certificate
ServerKeyExchange
CertificateRequest
ServerHelloDone
CertificateVerify
ClientKeyExchange
Finished
CertificateURL
CertificateStatus
KeyUpdate
CompressedCertificate
MessageHash
Unknown(u8)
实现§
Trait 实现§
Source§impl Clone for HandshakeType
impl Clone for HandshakeType
Source§fn clone(&self) -> HandshakeType
fn clone(&self) -> HandshakeType
返回值的副本。 更多信息
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 HandshakeType
impl Debug for HandshakeType
Source§impl From<HandshakeType> for u8
impl From<HandshakeType> for u8
Source§fn from(value: HandshakeType) -> Self
fn from(value: HandshakeType) -> Self
从输入类型转换为此类型。
Source§impl PartialEq for HandshakeType
impl PartialEq for HandshakeType
impl Copy for HandshakeType
impl Eq for HandshakeType
impl StructuralPartialEq for HandshakeType
自动 Trait 实现§
impl Freeze for HandshakeType
impl RefUnwindSafe for HandshakeType
impl Send for HandshakeType
impl Sync for HandshakeType
impl Unpin for HandshakeType
impl UnsafeUnpin for HandshakeType
impl UnwindSafe for HandshakeType
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. 更多信息