Struct rustls::ServerSessionMemoryCache [] [src]

pub struct ServerSessionMemoryCache { /* fields omitted */ }

An implementor of StoresServerSessions that stores everything in memory. If enforces a limit on the number of stored sessions to bound memory usage.

Methods

impl ServerSessionMemoryCache
[src]

[src]

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

Trait Implementations

impl StoresServerSessions for ServerSessionMemoryCache
[src]

[src]

Generate a session ID.

[src]

Store session secrets encoded in value against key id, overwrites any existing value against id. Returns true if the value was stored. Read more

[src]

Find a session with the given id. Return it, or None if it doesn't exist. Read more

[src]

Erase a session with the given id. Return true if id existed and was removed. Read more