[−][src]Struct izanami_service::ext::MapErr
Trait Implementations
impl<S: Debug, F: Debug> Debug for MapErr<S, F>
[src]
impl<S, F, E, Req> Service<Req> for MapErr<S, F> where
S: Service<Req>,
F: Fn(S::Error) -> E + Clone,
[src]
S: Service<Req>,
F: Fn(S::Error) -> E + Clone,
Auto Trait Implementations
impl<S, F> Send for MapErr<S, F> where
F: Send,
S: Send,
F: Send,
S: Send,
impl<S, F> Sync for MapErr<S, F> where
F: Sync,
S: Sync,
F: Sync,
S: Sync,
Blanket Implementations
impl<S, Req> ServiceExt 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,
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,
[src]
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>,
[src]
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>,
[src]
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,
[src]
S: Service<Req, Error = Self::Error>,
Req: Clone,
Combines this service with the the specified one. Read more
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,