[−][src]Struct actix_service::FromErr
Service for the from_err combinator, changing the error type of a service.
This is created by the ServiceExt::from_err method.
Trait Implementations
impl<A, E> Clone for FromErr<A, E> where
A: Clone, [src]
A: Clone,
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<A, E> Service for FromErr<A, E> where
A: Service,
E: From<A::Error>, [src]
A: Service,
E: From<A::Error>,
type Request = A::Request
Requests handled by the service.
type Response = A::Response
Responses given by the service.
type Error = E
Errors produced by the service.
type Future = FromErrFuture<A, E>
The future response value.
fn poll_ready(&mut self) -> Poll<(), E>[src]
fn call(&mut self, req: A::Request) -> Self::Future[src]
Auto Trait Implementations
impl<A, E> RefUnwindSafe for FromErr<A, E> where
A: RefUnwindSafe,
E: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
impl<A, E> Send for FromErr<A, E> where
A: Send,
E: Send,
A: Send,
E: Send,
impl<A, E> Sync for FromErr<A, E> where
A: Sync,
E: Sync,
A: Sync,
E: Sync,
impl<A, E> Unpin for FromErr<A, E> where
A: Unpin,
E: Unpin,
A: Unpin,
E: Unpin,
impl<A, E> UnwindSafe for FromErr<A, E> where
A: UnwindSafe,
E: UnwindSafe,
A: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoService<T> for T where
T: Service, [src]
T: Service,
fn into_service(Self) -> T[src]
impl<T> ServiceExt for T where
T: Service + ?Sized, [src]
T: Service + ?Sized,
fn apply_fn<F, B, B1, Out>(
self,
service: B1,
f: F
) -> AndThenApply<Self, B, F, Out> where
Self: Sized,
F: FnMut(Self::Response, &mut B) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
B: Service<Error = Self::Error>,
B1: IntoService<B>, [src]
self,
service: B1,
f: F
) -> AndThenApply<Self, B, F, Out> where
Self: Sized,
F: FnMut(Self::Response, &mut B) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
B: Service<Error = Self::Error>,
B1: IntoService<B>,
fn and_then<F, B>(self, service: F) -> AndThen<Self, B> where
Self: Sized,
F: IntoService<B>,
B: Service<Request = Self::Response, Error = Self::Error>, [src]
Self: Sized,
F: IntoService<B>,
B: Service<Request = Self::Response, Error = Self::Error>,
fn from_err<E>(self) -> FromErr<Self, E> where
Self: Sized,
E: From<Self::Error>, [src]
Self: Sized,
E: From<Self::Error>,
fn then<B>(self, service: B) -> Then<Self, B> where
Self: Sized,
B: Service<Request = Result<Self::Response, Self::Error>, Error = Self::Error>, [src]
Self: Sized,
B: Service<Request = Result<Self::Response, Self::Error>, Error = Self::Error>,
fn map<F, R>(self, f: F) -> Map<Self, F, R> where
Self: Sized,
F: FnMut(Self::Response) -> R, [src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E, [src]
Self: Sized,
F: Fn(Self::Error) -> E,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,