Struct iron_sessionstorage_0_6::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]
pub fn get<T: Value + Sized + 'static>(&self) -> IronResult<Option<T>>
[src]
Get a Value
from the session.
pub fn set<T: Value>(&mut self, t: T) -> IronResult<()>
[src]
Set a Value
in the session.
pub fn clear(&mut self) -> IronResult<()>
[src]
Clear/delete the session