pub fn from_fn_with_state_arc<F, S, T>(
    state: Arc<S>,
    f: F
) -> FromFnLayer<F, S, T>
Expand description

Create a middleware from an async function with the given Arc’ed state.

See State for more details about accessing state.