Trait gotham::middleware::session::NewBackend
source · [−]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
Required methods
fn new_backend(&self) -> Result<Self::Instance>
fn new_backend(&self) -> Result<Self::Instance>
Create and return a new Backend
value.