Transforms successful service responses with a synchronous function.
Created by Service::map and crate::ServiceChain::map. Each successful
inner call passes its response to the mapping function, whose return value
becomes the new response. On failure, the error is returned unchanged and
the mapping function is not invoked.
The request, state, and error types are unchanged. For asynchronous response
processing, use Service::and_then or crate::apply_fn instead.
Binding, readiness, and shutdown are forwarded to the inner service.
Mapping preserves the inner service’s readiness identity without adding an
independent cache or an extra readiness check at call time. An explicit
crate::ready() wrapper on the inner service retains its own readiness
behavior.
Cloning clones both the inner service and mapping function. Whether their
state is shared depends on their clone implementations.