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]
impl ClientSessionMemoryCache
pub fn new(size: usize) -> Arc<ClientSessionMemoryCache>
[src]
pub fn new(size: usize) -> Arc<ClientSessionMemoryCache>
Make a new ClientSessionMemoryCache. size
is the
maximum number of stored sessions.
Trait Implementations
Auto Trait Implementations
impl Send for ClientSessionMemoryCache
impl Send for ClientSessionMemoryCache
impl Sync for ClientSessionMemoryCache
impl Sync for ClientSessionMemoryCache