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

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[src]

The type of Backend created by the NewBackend.

Loading content...

Required methods

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

Create and return a new Backend value.

Loading content...

Implementors

Loading content...