pub trait TryCanReceive<T> {
    // Required method
    fn try_give(&self, item: T) -> Result<T, T>;
}
Expand description

Trait representing something which we can attempt to give an item to.

Required Methods§

source

fn try_give(&self, item: T) -> Result<T, T>

Try to give a value to the handoff, may return an error if full, representing backpressure.

Implementors§