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>;
}
Expand description

A simple key-value storage interface that is internally used by Session.

Required Methods

Get session value by key

Set session value

Remove specific key from session

Remove all values from session

Write session to storage backend.

Implementors