Trait gotham::middleware::session::NewBackend

source ·
pub trait NewBackend: Sync + Clone + RefUnwindSafe {
    type Instance: Backend + Send + 'static;

    // Required method
    fn new_backend(&self) -> Result<Self::Instance>;
}
Expand description

A type which is used to spawn new Backend values.

Required Associated Types§

source

type Instance: Backend + Send + 'static

The type of Backend created by the NewBackend.

Required Methods§

source

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

Create and return a new Backend value.

Object Safety§

This trait is not object safe.

Implementors§