Trait cosworth::prelude::session::SessionImpl
source · pub trait SessionImpl: 'static {
fn get(&self, key: &str) -> Option<&str>;
fn set(&mut self, key: &str, value: String);
fn remove(&mut self, key: &str);
fn clear(&mut self);
fn write(&self, resp: HttpResponse) -> Result<Response, Error>;
}
Expand description
A simple key-value storage interface that is internally used by Session
.