Struct timely::dataflow::channels::pushers::counter::Counter
[−]
[src]
pub struct Counter<T: Ord, D, P: Push<(T, Content<D>)>> { /* fields omitted */ }
A wrapper which updates shared produced
based on the number of records pushed.
Methods
impl<T, D, P: Push<(T, Content<D>)>> Counter<T, D, P> where
T: Ord + Clone + 'static,
[src]
T: Ord + Clone + 'static,
fn new(pushee: P) -> Counter<T, D, P>
[src]
Allocates a new Counter
from a pushee and shared counts.
fn produced(&self) -> &Rc<RefCell<ChangeBatch<T>>>
[src]
A references to shared changes in counts, for cloning or draining.
Trait Implementations
impl<T: Ord, D, P: Push<(T, Content<D>)>> Push<(T, Content<D>)> for Counter<T, D, P> where
T: Eq + Clone + 'static,
[src]
T: Eq + Clone + 'static,