#[non_exhaustive]pub enum HandshakeKind {
Full,
FullWithHelloRetryRequest,
Resumed,
ResumedWithHelloRetryRequest,
}Expand description
Describes which sort of handshake happened.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Full
A full handshake.
This is the typical TLS connection initiation process when resumption is
not yet unavailable, and the initial ClientHello was accepted by the server.
FullWithHelloRetryRequest
A full TLS1.3 handshake, with an extra round-trip for a HelloRetryRequest.
The server can respond with a HelloRetryRequest if the initial ClientHello
is unacceptable for several reasons, the most likely being if no supported key
shares were offered by the client.
Resumed
A resumed handshake.
Resumed handshakes involve fewer round trips and less cryptography than full ones, but can only happen when the peers have previously done a full handshake together, and then remember data about it.
ResumedWithHelloRetryRequest
A resumed handshake, with an extra round-trip for a HelloRetryRequest.
The server can respond with a HelloRetryRequest if the initial ClientHello
is unacceptable for several reasons, but this does not prevent the client
from resuming.
Trait Implementations§
Source§impl Clone for HandshakeKind
impl Clone for HandshakeKind
Source§fn clone(&self) -> HandshakeKind
fn clone(&self) -> HandshakeKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more