Trait tikv_util::mpsc::batch::BatchCollector [−][src]
A Collector Used in BatchReceiver
.
Required methods
fn collect(&mut self, collection: &mut Collection, elem: Elem) -> Option<Elem>
[src]
If elem
is collected into collection
successfully, return None
.
Otherwise return elem
back, and collection
should be spilled out.