#[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

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.