pub const fn into_handler_once<H, P, T>(h: H) -> IntoHandlerOnce<H, P, T>where
H: HandlerFnOnce<P, T>,
P: 'static,
T: 'static,Expand description
Converts a single-use function into a one-time handler.
§Arguments
h- The single-use function to convert into a handler
§Returns
A handler that implements the HandlerOnce trait