Struct actix_net::service::FromErr [−][src]
pub struct FromErr<A, E> where
A: Service, { /* fields omitted */ }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: Service + Clone,
E: From<A::Error>, [src]
impl<A, E> Clone for FromErr<A, E> where
A: Service + Clone,
E: From<A::Error>, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<A, E> Service for FromErr<A, E> where
A: Service,
E: From<A::Error>, [src]
impl<A, E> Service for FromErr<A, E> where
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 poll_ready(&mut self) -> Poll<(), E>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, req: Self::Request) -> Self::Future[src]
fn call(&mut self, req: Self::Request) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.