Function dptree::inspect

source · []
pub fn inspect<'a, F, Input, Output, Args, Descr>(
    f: F
) -> Handler<'a, Input, Output, Descr> where
    Asyncify<F>: Injectable<Input, (), Args> + Send + Sync + 'a,
    Input: Send + 'a,
    Output: 'a,
    Descr: HandlerDescription
Expand description

Constructs a handler that inspects current state. Like map but does not add return value of f to the container.