Trait dfir_rs::scheduled::handoff::CanReceive

source ·
pub trait CanReceive<T> {
    // Required method
    fn give(&self, item: T) -> T;
}
Expand description

Trait representing somethign which we can give an item to.

Required Methods§

source

fn give(&self, item: T) -> T

Give a value to the handoff.

Implementors§

source§

impl<T> CanReceive<Option<T>> for VecHandoff<T>

source§

impl<T> CanReceive<Vec<T>> for TeeingHandoff<T>
where T: Clone,

source§

impl<T> CanReceive<Vec<T>> for VecHandoff<T>

source§

impl<T, I> CanReceive<Iter<I>> for VecHandoff<T>
where I: Iterator<Item = T>,