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

An implementer of ClientSessionStore that stores everything in memory.

It enforces a limit on the number of entries to bound memory usage.

Implementations

Make a new ClientSessionMemoryCache. size is the maximum number of stored sessions.

Trait Implementations

Remember what NamedGroup the given server chose.
This should return the value most recently passed to set_kx_hint for the given server_name. Read more
Remember a TLS1.2 session. Read more
Get the most recently saved TLS1.2 session for server_name provided to set_tls12_session.
Remove and forget any saved TLS1.2 session for server_name.
Remember a TLS1.3 ticket that might be retrieved later from take_tls13_ticket, allowing resumption of this session. Read more
Return a TLS1.3 ticket previously provided to add_tls13_ticket. 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.

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.