pub struct Map<A, F, Response> { /* fields omitted */ }
Service for the map
combinator, changing the type of a service's response.
This is created by the ServiceExt::map
method.
impl<A, F, Response> Map<A, F, Response> | [src] |
Create new Map
combinator
Responses given by the service.
Errors produced by the service.
type Future = MapFuture<A, F, Request, Response>
The future response value.
Returns Ready
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Performs copy-assignment from source
. Read more
fn apply<T, I, F, Out, Req>( self, service: I, f: F ) -> AndThen<Self, Apply<T, F, Self::Response, Out, Req>> where Self: Sized, T: Service<Req, Error = Self::Error>, I: IntoService<T, Req>, F: Fn(Self::Response, &mut T) -> Out, Out: IntoFuture<Error = Self::Error>, | [src] |
Apply function to specified service and use it as a next service in chain. Read more
Call another service after call to this one has resolved successfully. Read more
Map this service's error to any error implementing From
for this services
Error`. Read more
Chain on a computation for when a call to the service finished, passing the result of the call to the next service B
. Read more
Map this service's output to a different type, returning a new service of the resulting type. Read more
Map this service's error to a different error, returning a new service. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static