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

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

A type which is used to spawn new Backend values.

Associated Types

The type of Backend created by the NewBackend.

Required methods

Create and return a new Backend value.

Implementors