Struct rustls::ClientSessionMemoryCache[][src]

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

An implementor of StoresClientSessions 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

Stores a new value for key. Returns true if the value was stored. Read more

Returns the latest value for key. Returns None if there’s no such value. 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

Performs the conversion.

Performs the conversion.

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.