pub struct Request<'a, R> { /* private fields */ }
Expand description

Request handle. Used as a promise for response.

Implementations

Try get response without waiting.

This function returns:

  • None - no response yet but it may arrive in future.
  • Some(response) - response arrived or it will never arrive (see Self::get_response).

Wait for response and return it.

This function returns:

  • None - no response (due to Responder being closed or corresponding Response being ignored).
  • Some(message) - response arrived.

Trait Implementations

Executes the destructor for this type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.