Struct bidirectional_channel::ReceivedRequest[][src]

#[must_use = "You must respond to the request"]
pub struct ReceivedRequest<Req, Resp> { pub request: Req, pub unresponded: UnRespondedRequest<Resp>, }
Expand description

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.

Fields

request: Requnresponded: UnRespondedRequest<Resp>

Trait Implementations

Performs the conversion.

Performs the conversion.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

If the implementer owns any data, it is given back to the user on both receipt and failure

Fullfill our obligation to the Requester by responding to their request

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.

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.