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

pub trait SessionBackend<S>: Sized + 'static {
    type Session: SessionImpl;
    type ReadFuture: Future<Item = Self::Session, Error = Error>;
    fn from_request(&self, request: &mut HttpRequest<S>) -> Self::ReadFuture;
}

Session's storage backend trait definition.

Associated Types

type Session: SessionImpl

Session item

type ReadFuture: Future<Item = Self::Session, Error = Error>

Future that reads session

Loading content...

Required methods

fn from_request(&self, request: &mut HttpRequest<S>) -> Self::ReadFuture

Parse the session from request and load data from a storage backend.

Loading content...

Implementors

impl<S> SessionBackend<S> for CookieSessionBackend[src]

Loading content...