Function map

Source
pub fn map<'a, Projection, Output, NewType, Args, Descr>(
    proj: Projection,
) -> Handler<'a, Output, Descr>
where Asyncify<Projection>: Injectable<NewType, Args> + Send + Sync + 'a, Output: 'a, Descr: HandlerDescription, NewType: Send + Sync + 'static,
Expand description

Constructs a handler that passes a value of a new type further.

The result of invoking proj will be added to the container and passed further in a handler chain.

See also: crate::filter_map.