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§
Required Methods§
sourcefn new_backend(&self) -> Result<Self::Instance>
fn new_backend(&self) -> Result<Self::Instance>
Create and return a new Backend
value.
Object Safety§
This trait is not object safe.