pub type ExecuteFuture<'a> = Pin<Box<dyn Future<Output = Result<Response<HttpBody>, TransportError>> + Send + 'a>>;Expand description
The boxed future HttpBackend::execute returns: an executed [http::Response] or a
TransportError. The 'a lifetime ties the future to the borrow of &self, so a backend may
borrow its own fields while the request runs (as ReqwestBackend borrows its client); a
'static future fits too, since a longer lifetime coerces to the shorter one the trait
requires.
The future is Send off wasm32 and not on it, since reqwest’s fetch-backed futures are
!Send on the single-threaded browser target; the wasm module explains the gating.
Aliased Type§
pub struct ExecuteFuture<'a> { /* private fields */ }