Trait Respond
Other items inbidirectional_channel
pub trait Respond<Resp> { type Owned; fn respond(self, response: Resp) -> Result<Self::Owned, (Self::Owned, Resp)>; }
type Owned
If the implementer owns any data, it is given back to the user on both receipt and failure
fn respond(self, response: Resp) -> Result<Self::Owned, (Self::Owned, Resp)>
Fullfill our obligation to the Requester by responding to their request
Requester
impl<Req, Resp> Respond<Resp> for ReceivedRequest<Req, Resp>
type Owned = Req
impl<Resp> Respond<Resp> for UnRespondedRequest<Resp>
type Owned = ()