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

Configuration for how/when a client is allowed to resume a previous session.

Implementations

Create a new Resumption that stores data for the given number of sessions in memory.

This is the default Resumption choice, and enables resuming a TLS 1.2 session with a session id or RFC 5077 ticket.

Use a custom ClientSessionStore implementation to store sessions.

By default, enables resuming a TLS 1.2 session with a session id or RFC 5077 ticket.

Disable all use of session resumption.

Configure whether TLS 1.2 sessions may be resumed, and by what mechanism.

This is meaningless if you’ve disabled resumption entirely.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Create an in-memory session store resumption with up to 256 server names, allowing a TLS 1.2 session to resume with a session id or RFC 5077 ticket.

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.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.