Trait gotham::middleware::NewMiddleware
[−]
[src]
pub trait NewMiddleware: Sync { type Instance: Middleware; fn new_middleware(&self) -> Result<Self::Instance>; }
Creates new Middleware
values.
Associated Types
type Instance: Middleware
The type of Middleware
created by the implementor.
Required Methods
fn new_middleware(&self) -> Result<Self::Instance>
Create and return a new Middleware
value.
Implementors
impl<B, T> NewMiddleware for NewSessionMiddleware<B, T> where
B: NewBackend,
T: Default + Serialize + for<'de> Deserialize<'de> + Send + 'static,