pub type HttpDone = Box<dyn FnOnce(Result<HttpResponse, String>) + Send + 'static>;Expand description
The completion callback a dispatcher owns for the life of one request. It is called exactly once, from whatever thread or task the reply arrived on, and it never touches the world: all it does is hand the outcome to the channel the world thread drains.
Aliased Typeยง
pub struct HttpDone(/* private fields */);