Struct rustls::ClientSessionMemoryCache[][src]

pub struct ClientSessionMemoryCache { /* fields omitted */ }

An implementor of StoresClientSessions that stores everything in memory. It enforces a limit on the number of entries to bound memory usage.

Methods

impl ClientSessionMemoryCache
[src]

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

Trait Implementations

impl StoresClientSessions for ClientSessionMemoryCache
[src]

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