1 2 3 4 5 6 7
use alloc::vec::Vec; pub trait Producer { type Item; fn poll(&mut self) -> Option<Vec<Self::Item>>; }