[][src]Trait gotham::middleware::session::NewBackend

pub trait NewBackend: Sync + Clone + RefUnwindSafe {
    type Instance: Backend + Send + 'static;
    fn new_backend(&self) -> Result<Self::Instance>;
}

A type which is used to spawn new Backend values.

Associated Types

type Instance: Backend + Send + 'static

The type of Backend created by the NewBackend.

Loading content...

Required methods

fn new_backend(&self) -> Result<Self::Instance>

Create and return a new Backend value.

Loading content...

Implementors

impl NewBackend for MemoryBackend[src]

Loading content...