Struct iron_sessionstorage::Session
[−]
[src]
pub struct Session { /* fields omitted */ }
The high-level interface you use to modify session data. You obtain this object with
request.session()
.
Methods
impl Session
[src]
fn get<T: Value + Sized + 'static>(&self) -> IronResult<Option<T>>
Get a Value
from the session.
fn set<T: Value>(&mut self, t: T) -> IronResult<()>
Set a Value
in the session.
fn clear(&mut self) -> IronResult<()>
Clear/delete the session