Type Definition pea2pea::protocols::ReturnableItem[][src]

pub type ReturnableItem<T, U> = (T, Sender<U>);
Expand description

An object sent to a protocol handler task; the task assumes control of a protocol-relevant item T, and when it’s done with it, it returns it (possibly in a wrapper object) or another relevant object to the callsite via the counterpart oneshot::Receiver.