RawSession

Trait RawSession 

Source
pub trait RawSession {
    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;
}
Expand description

The trait representing the backend to manage session value.

Required Associated Types§

Source

type WriteFuture: Future<Item = (), Error = Error>

Required Methods§

Source

fn get(&self) -> Option<&str>

Source

fn set(&mut self, value: String)

Source

fn remove(&mut self)

Source

fn write(self, input: &mut Input) -> Self::WriteFuture

Implementors§