into_handler_with_state

Function into_handler_with_state 

Source
pub const fn into_handler_with_state<H, P, T, S>(
    h: H,
    state: S,
) -> IntoHandlerWithState<H, P, T, S>
where H: HandlerFnWithState<P, T, S>, S: 'static + Clone, T: 'static, P: 'static,
Expand description

Creates a handler with associated state from a handler function and state value.