Struct rustls::server::NoServerSessionStorage
source · pub struct NoServerSessionStorage {}
Expand description
Something which never stores sessions.
Trait Implementations§
source§impl StoresServerSessions for NoServerSessionStorage
impl StoresServerSessions for NoServerSessionStorage
source§fn put(&self, _id: Vec<u8>, _sec: Vec<u8>) -> bool
fn put(&self, _id: Vec<u8>, _sec: Vec<u8>) -> bool
Store session secrets encoded in
value
against key
,
overwrites any existing value against key
. Returns true
if the value was stored.source§fn get(&self, _id: &[u8]) -> Option<Vec<u8>>
fn get(&self, _id: &[u8]) -> Option<Vec<u8>>
Find a value with the given
key
. Return it, or None
if it doesn’t exist.