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: Req
unresponded: UnRespondedRequest<Resp>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<Req, Resp> !RefUnwindSafe for ReceivedRequest<Req, Resp>
impl<Req, Resp> Send for ReceivedRequest<Req, Resp> where
Req: Send,
Resp: Send,
impl<Req, Resp> Sync for ReceivedRequest<Req, Resp> where
Req: Sync,
Resp: Send,
impl<Req, Resp> Unpin for ReceivedRequest<Req, Resp> where
Req: Unpin,
impl<Req, Resp> !UnwindSafe for ReceivedRequest<Req, Resp>