Struct fastly::handle::PendingRequestHandle
source · [−]#[repr(transparent)]pub struct PendingRequestHandle { /* private fields */ }
Expand description
A handle to a pending asynchronous request returned by
RequestHandle::send_async()
or
RequestHandle::send_async_streaming()
.
A handle can be evaluated using PendingRequestHandle::poll()
,
PendingRequestHandle::wait()
, or select_handles()
. 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 PollHandleResult
; if you want to block until a
result is ready, use wait()
.
Block until the result of a pending request is ready.
If you want check whether the result is ready without blocking, use
poll()
.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.