Struct rouille::Session [] [src]

pub struct Session<'a, T> where T: Clone + 'a { /* fields omitted */ }

Represents an entry in the sessions manager.

Methods

impl<'a, T> Session<'a, T> where T: Clone
[src]

Load the session infos from the manager. Returns None if there is no data yet.

Note that calling get twice in a row can produce different results. That can happen if two requests are processed in parallel and access the same session.

Returns true if there is session data.

Stores the session infos in the manager.

Removes the session infos from the manager.

Applies the session on the Response. If you don't do that, the session won't be maintained on further connections.