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]
fn new(size: usize) -> Box<ServerSessionMemoryCache>
Trait Implementations
impl StoresServerSessions for ServerSessionMemoryCache[src]
fn generate(&self) -> SessionID
Generate a session ID.
fn put(&mut self, id: &SessionID, sec: Vec<u8>) -> bool
Store session secrets encoded in value against key id, overwrites any existing value against id.  Returns true if the value was stored. Read more
fn get(&self, id: &SessionID) -> Option<Vec<u8>>
Find a session with the given id.  Return it, or None if it doesn't exist. Read more
fn del(&mut self, id: &SessionID) -> bool
Erase a session with the given id.  Return true if id existed and was removed. Read more