pub struct PendingRequest(_);
Block until the request has completed.
Consumes the pending request handle, and returns a response. If the request fails, this
returns a SendError
. Future versions of this API will offer more details about why a
failure occurred, but the potential reasons are described in the reqwest
documentation.
Poll the status of the pending request without blocking.
If the request has not completed, returns PollResult::NotReady(pending_req)
, so that the
pending request can be used again..
If the request has completed, consumes the pending request handle, and returns a response in
PollResult::Response(resp)
.
If the request fails, returns Err(SendError::Hostcall)
. Future versions of this API will
offer more details about why a failure occurred, but the potential reasons are described in
the reqwest
documentation.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static