pub trait IntoUpdateHandlerFunc<Arg, Res> {
// Required method
fn into_update_handler_fn(
self,
) -> Box<dyn FnMut(UpdateContext, &Payload) -> BoxFuture<'static, Result<Payload, Error>> + Send>;
}Expand description
Closures / functions which can be turned into update handler functions implement this trait