Struct bidirectional_channel::ReceivedRequest[][src]

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 ReceivedRequest::respond, or destructured.

Fields

request: Req

The request itself

unresponded: UnRespondedRequest<Resp>

Handle to respond to the Requester

Implementations

Respond to the Requester’s request, and take ownership of it Fails if the associated Requester was dropped, and returns your response back

Trait Implementations

Performs the conversion.

Performs the conversion.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.