[−][src]Struct fastly::request::PendingRequestHandle
A handle to a pending asynchronous request returned by
RequestHandle::send_async()
.
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.
Methods
impl PendingRequestHandle
[src]
pub fn poll(self) -> PollHandleResult
[src]
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
PendingRequestHandle::wait()
.
pub fn wait(self) -> Result<(ResponseHandle, BodyHandle), Error>
[src]
Block until the result of a pending request is ready.
If you want check whether the result is ready without blocking, use
PendingRequestHandle::poll()
.
Trait Implementations
impl Debug for PendingRequestHandle
[src]
impl Eq for PendingRequestHandle
[src]
impl From<PendingRequest> for PendingRequestHandle
[src]
fn from(pr: PendingRequest) -> Self
[src]
impl From<PendingRequestHandle> for PendingRequest
[src]
fn from(handle: PendingRequestHandle) -> Self
[src]
impl Hash for PendingRequestHandle
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PendingRequestHandle> for PendingRequestHandle
[src]
fn eq(&self, other: &PendingRequestHandle) -> bool
[src]
fn ne(&self, other: &PendingRequestHandle) -> bool
[src]
impl StructuralEq for PendingRequestHandle
[src]
impl StructuralPartialEq for PendingRequestHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for PendingRequestHandle
impl Send for PendingRequestHandle
impl Sync for PendingRequestHandle
impl Unpin for PendingRequestHandle
impl UnwindSafe for PendingRequestHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,