pub struct WebStack<St, Inner, Outer> { /* private fields */ }Expand description
Stack of middlewares.
Implementations§
Trait Implementations§
Source§impl<S, St, Inner, Outer> Middleware<S, St> for WebStack<St, Inner, Outer>
impl<S, St, Inner, Outer> Middleware<S, St> for WebStack<St, Inner, Outer>
Source§type Service = WebMiddleware<<Outer as Middleware<<Inner as Middleware<S, St>>::Service, St>>::Service, St>
type Service = WebMiddleware<<Outer as Middleware<<Inner as Middleware<S, St>>::Service, St>>::Service, St>
Service created by this middleware.
Source§fn create(&self, st: &St, service: S) -> Self::Service
fn create(&self, st: &St, service: S) -> Self::Service
Creates and returns a new middleware service.
Source§fn apply_to<Sf, Req>(
self,
factory: Sf,
) -> ServiceChainFactory<ApplyMiddleware<Self, Sf>, St, Req>
fn apply_to<Sf, Req>( self, factory: Sf, ) -> ServiceChainFactory<ApplyMiddleware<Self, Sf>, St, Req>
Creates a service factory that instantiates a service and applies
the current middleware to it. Read more
Auto Trait Implementations§
impl<St, Inner, Outer> Freeze for WebStack<St, Inner, Outer>
impl<St, Inner, Outer> RefUnwindSafe for WebStack<St, Inner, Outer>
impl<St, Inner, Outer> Send for WebStack<St, Inner, Outer>
impl<St, Inner, Outer> Sync for WebStack<St, Inner, Outer>
impl<St, Inner, Outer> Unpin for WebStack<St, Inner, Outer>
impl<St, Inner, Outer> UnsafeUnpin for WebStack<St, Inner, Outer>where
Inner: UnsafeUnpin,
Outer: UnsafeUnpin,
impl<St, Inner, Outer> UnwindSafe for WebStack<St, Inner, Outer>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more