[−][src]Trait izanami_service::ext::ServiceExt
A set of extensions for Service
s.
Provided methods
fn service_map<F, Res>(self, f: F) -> Map<Self, F> where
F: Fn(Self::Response) -> Res + Clone,
F: Fn(Self::Response) -> Res + Clone,
Maps the response value returned from this service into a different type using the specified function.
fn service_map_err<F, E>(self, f: F) -> MapErr<Self, F> where
F: Fn(Self::Error) -> E + Clone,
F: Fn(Self::Error) -> E + Clone,
Maps the error value produced by this service into a different type using the specified function.
fn service_err_into<E>(self) -> ErrInto<Self, E> where
Self::Error: Into<E>,
Self::Error: Into<E>,
Converts the error value produced by this service into a different type.
fn service_and_then<F, R>(self, f: F) -> AndThen<Self, F> where
F: Fn(Self::Response) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
F: Fn(Self::Response) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
Executes the future returned from the specified function when this service returns a response.
fn service_join<S>(self, service: S) -> Join<Self, S> where
S: Service<Req, Error = Self::Error>,
Req: Clone,
S: Service<Req, Error = Self::Error>,
Req: Clone,
Combines this service with the the specified one.
The specified Service
has the same request type as this service.
Implementors
impl<S, Req> ServiceExt<Req> for S where
S: Service<Req>,
[src]
S: Service<Req>,
fn service_map<F, Res>(self, f: F) -> Map<Self, F> where
F: Fn(Self::Response) -> Res + Clone,
[src]
F: Fn(Self::Response) -> Res + Clone,
fn service_map_err<F, E>(self, f: F) -> MapErr<Self, F> where
F: Fn(Self::Error) -> E + Clone,
[src]
F: Fn(Self::Error) -> E + Clone,
fn service_err_into<E>(self) -> ErrInto<Self, E> where
Self::Error: Into<E>,
[src]
Self::Error: Into<E>,
fn service_and_then<F, R>(self, f: F) -> AndThen<Self, F> where
F: Fn(Self::Response) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
[src]
F: Fn(Self::Response) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
fn service_join<S>(self, service: S) -> Join<Self, S> where
S: Service<Req, Error = Self::Error>,
Req: Clone,
[src]
S: Service<Req, Error = Self::Error>,
Req: Clone,