Trait finchers_session::RawSession [−][src]
pub trait RawSession {
type WriteFuture: Future<Item = (), Error = Error>;
fn get(&self) -> Option<&str>;
fn set(&mut self, value: String);
fn remove(&mut self);
fn write(self, input: &mut Input) -> Self::WriteFuture;
}The trait representing the backend to manage session value.
Associated Types
type WriteFuture: Future<Item = (), Error = Error>
Required Methods
fn get(&self) -> Option<&str>
fn set(&mut self, value: String)
fn remove(&mut self)
fn write(self, input: &mut Input) -> Self::WriteFuture
Implementors
impl RawSession for CookieSession type WriteFuture = FutureResult<(), Error>;impl RawSession for InMemorySession type WriteFuture = FutureResult<(), Error>;impl RawSession for RedisSession type WriteFuture = WriteFuture;