pub struct TlsSession { /* private fields */ }
Expand description

A rustls TLS session

Trait Implementations

Create the initial set of keys given the client’s initial destination ConnectionId

Get data negotiated during the handshake, if available Read more

Get the peer’s identity, if available

Get the 0-RTT keys if available (clients only) Read more

If the 0-RTT-encrypted data has been accepted by the peer

Returns true until the connection is fully established.

Read bytes of handshake data Read more

The peer’s QUIC transport parameters Read more

Writes handshake bytes into the given buffer and optionally returns the negotiated keys Read more

Compute keys for the next key update

Verify the integrity of a retry packet

Fill output with output.len() bytes of keying material derived from the Session’s secrets, using label and context for domain separation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more