Trait bidirectional_channel::Respond[][src]

pub trait Respond<Resp>: Sealed {
    type Owned;
    fn respond(self, response: Resp) -> Result<Self::Owned, (Self::Owned, Resp)>;
}
Expand description

Represents fullfilling a Requester’s request. This trait is sealed - types external to this crate may not implement it.

Associated Types

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

Required methods

Fullfill our obligation to the Requester by responding to their request

Implementors