into_handler

Function into_handler 

Source
pub const fn into_handler<H, P, T>(h: H) -> IntoHandler<H, P, T>
where P: 'static, T: 'static, H: HandlerFn<P, T>,
Expand description

Converts a function into an immutable handler.

§Arguments

  • h - The function to convert into a handler

§Returns

A handler that implements the Handler trait