pub type Handler = Arc<dyn Fn(Request) -> BoxFuture<Result<Value, String>> + Send + Sync>;Expand description
Answers a Request with a result payload, or an error whose text the
caller receives as a handler_error’s detail. A handler still running at
the request’s deadline is dropped and answered handler_error.
Aliased Type§
pub struct Handler { /* private fields */ }