Struct ntex::service::dev::Map [−][src]
pub struct Map<A, F, Req, Res> { /* fields omitted */ }
Expand description
Service for the map
combinator, changing the type of a service’s response.
This is created by the ServiceExt::map
method.
Trait Implementations
type Response = Res
type Response = Res
Responses given by the service.
type Future = MapFuture<A, F, Req, Res>
type Future = MapFuture<A, F, Req, Res>
The future response value.
Returns Ready
when the service is able to process requests. Read more
Shutdown service. Read more
Process the request and return the response asynchronously. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Auto Trait Implementations
impl<A, F, Req, Res> RefUnwindSafe for Map<A, F, Req, Res> where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F, Req, Res> UnwindSafe for Map<A, F, Req, Res> where
A: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert to a Service
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more