Type Alias MethodFunction

Source
pub type MethodFunction<State> = fn(State, Request) -> BoxFuture<'static, Result<Response, Infallible>>;