Struct tsukuyomi::session::Session [−][src]
pub struct Session<'a> { /* fields omitted */ }
A manager of session variables associated with the current request.
Methods
impl<'a> Session<'a>
[src]
impl<'a> Session<'a>
pub fn get<T>(&self, key: &str) -> Result<Option<T>, Error> where
T: DeserializeOwned,
[src]
pub fn get<T>(&self, key: &str) -> Result<Option<T>, Error> where
T: DeserializeOwned,
pub fn set<T>(&self, key: &str, value: T) -> Result<(), Error> where
T: Serialize,
[src]
pub fn set<T>(&self, key: &str, value: T) -> Result<(), Error> where
T: Serialize,
pub fn remove(&self, key: &str) -> Result<(), Error>
[src]
pub fn remove(&self, key: &str) -> Result<(), Error>