Struct tsukuyomi_server::service::middleware::MiddlewareChain
source · pub struct MiddlewareChain<S, M> { /* private fields */ }Trait Implementations
sourceimpl<S: Debug, M: Debug> Debug for MiddlewareChain<S, M>
impl<S: Debug, M: Debug> Debug for MiddlewareChain<S, M>
sourceimpl<S, M> NewService for MiddlewareChain<S, M>where
S: NewService,
M: Middleware<S::Service>,
impl<S, M> NewService for MiddlewareChain<S, M>where
S: NewService,
M: Middleware<S::Service>,
type Request = <M as Middleware<<S as NewService>::Service>>::Request
type Request = <M as Middleware<<S as NewService>::Service>>::Request
Requests handled by the service
type Response = <M as Middleware<<S as NewService>::Service>>::Response
type Response = <M as Middleware<<S as NewService>::Service>>::Response
Responses given by the service
type Error = <M as Middleware<<S as NewService>::Service>>::Error
type Error = <M as Middleware<<S as NewService>::Service>>::Error
Errors produced by the service
type Service = <M as Middleware<<S as NewService>::Service>>::Service
type Service = <M as Middleware<<S as NewService>::Service>>::Service
The
Service value created by this factorytype InitError = <S as NewService>::InitError
type InitError = <S as NewService>::InitError
Errors produced while building a service.
type Future = MiddlewareChainFuture<<S as NewService>::Future, M>
type Future = MiddlewareChainFuture<<S as NewService>::Future, M>
The future of the
Service instance.sourcefn new_service(&self) -> Self::Future
fn new_service(&self) -> Self::Future
Create and return a new service value asynchronously.
Auto Trait Implementations
impl<S, M> RefUnwindSafe for MiddlewareChain<S, M>where
M: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, M> Send for MiddlewareChain<S, M>where
M: Send + Sync,
S: Send,
impl<S, M> Sync for MiddlewareChain<S, M>where
M: Send + Sync,
S: Sync,
impl<S, M> Unpin for MiddlewareChain<S, M>where
S: Unpin,
impl<S, M> UnwindSafe for MiddlewareChain<S, M>where
M: RefUnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more