[][src]Struct http_guest::PendingRequest

pub struct PendingRequest(_);

Methods

impl PendingRequest
[src]

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.

Trait Implementations

impl PartialEq<PendingRequest> for PendingRequest
[src]

impl Debug for PendingRequest
[src]

Auto Trait Implementations

impl Send for PendingRequest

impl Sync for PendingRequest

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]