Struct tsukuyomi_server::service::middleware::MiddlewareChain
source · pub struct MiddlewareChain<S, M> { /* private fields */ }Trait Implementations§
source§impl<S, M> NewService for MiddlewareChain<S, M>
impl<S, M> NewService for MiddlewareChain<S, M>
§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 factory§type 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.source§fn 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> Freeze for MiddlewareChain<S, M>where
S: Freeze,
impl<S, M> RefUnwindSafe for MiddlewareChain<S, M>where
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<S, M> Send for MiddlewareChain<S, M>
impl<S, M> Sync for MiddlewareChain<S, M>
impl<S, M> Unpin for MiddlewareChain<S, M>where
S: Unpin,
impl<S, M> UnwindSafe for MiddlewareChain<S, M>where
S: UnwindSafe,
M: RefUnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more