Enum rustls_handshake_kind

Source
#[repr(C)]
pub enum rustls_handshake_kind { Unknown = 0, Full = 1, FullWithHelloRetryRequest = 2, Resumed = 3, }
Expand description

Describes which sort of handshake happened.

Variants§

§

Unknown = 0

The type of handshake could not be determined.

This variant should not be used.

§

Full = 1

A full TLS handshake.

This is the typical TLS connection initiation process when resumption is not yet unavailable, and the initial client hello was accepted by the server.

§

FullWithHelloRetryRequest = 2

A full TLS handshake, with an extra round-trip for a hello retry request.

The server can respond with a hello retry request (HRR) if the initial client hello is unacceptable for several reasons, the most likely if no supported key shares were offered by the client.

§

Resumed = 3

A resumed TLS 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 Debug for rustls_handshake_kind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for rustls_handshake_kind

Source§

fn default() -> rustls_handshake_kind

Returns the “default value” for a type. Read more
Source§

impl From<HandshakeKind> for rustls_handshake_kind

Source§

fn from(kind: HandshakeKind) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.