pub enum HandshakeKind {
Full,
FullWithHelloRetryRequest,
Resumed,
}
Expand description
Describes which sort of handshake happened.
Variants§
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 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.
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 moreSource§impl Debug for HandshakeKind
impl Debug for HandshakeKind
Source§impl PartialEq for HandshakeKind
impl PartialEq for HandshakeKind
impl Copy for HandshakeKind
impl StructuralPartialEq for HandshakeKind
Auto Trait Implementations§
impl Freeze for HandshakeKind
impl RefUnwindSafe for HandshakeKind
impl Send for HandshakeKind
impl Sync for HandshakeKind
impl Unpin for HandshakeKind
impl UnwindSafe for HandshakeKind
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Full
: 0 bytesFullWithHelloRetryRequest
: 0 bytesResumed
: 0 bytes