Struct fastly::http::request::PendingRequest [−][src]
pub struct PendingRequest { /* fields omitted */ }
Expand description
A handle to a pending asynchronous request returned by Request::send_async()
or
Request::send_async_streaming()
.
A handle can be evaluated using PendingRequest::poll()
, PendingRequest::wait()
, or
select
. It can also be discarded if the request was sent for effects it might have, and the
response is unimportant.
Implementations
Try to get the result of a pending request without blocking.
This function returns immediately with a PollResult
; if you want to block until a result
is ready, use PendingRequest::wait()
.
Panics
Panics if the backend response exceeds any of the limits configured by
ResponseLimits
.
Block until the result of a pending request is ready.
If you want check whether the result is ready without blocking, use
PendingRequest::poll()
.
Panics
Panics if the backend response exceeds any of the limits configured by
ResponseLimits
.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for PendingRequest
impl Send for PendingRequest
impl Sync for PendingRequest
impl Unpin for PendingRequest
impl !UnwindSafe for PendingRequest