Crate bidirectional_channel[][src]

Expand description

An async channel with request-response semantics See the bounded function documentation for more

Structs

ReceivedRequest

Represents the request. This implements AsRef and AsMut for the request itself for explicit use. Alternatively, you may use [Deref] and [DerefMut] either explicitly, or coerced. Must be used by calling Respond::respond, or destructured.

Requester

Represents the initiator for the request-response exchange

Responder

The receiving side of a channel.

UnRespondedRequest

Represents that the Requester associated with this communication is still waiting for a response. Must be used by calling Respond::respond.

Traits

Respond

Functions

bounded

Create a bounded Requester-Responder pair.
That is, once the channel is full, future senders will yield when awaiting until there’s space again

Type Definitions

FutureResponse