Function from_fn

Source
pub fn from_fn<F, T, E, Args>(function: F) -> FromFn<F, T, E, Args>
where FromFn<F, T, E, Args>: HandlerTypes,