[][src]Trait actix_web::middleware::session::SessionImpl

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

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

impl SessionImpl for CookieSession
[src]