Struct timely::dataflow::channels::pullers::counter::Counter[][src]

pub struct Counter<T: Ord + Clone + 'static, D, P: Pull<Bundle<T, D>>> { /* fields omitted */ }

A wrapper which accounts records pulled past in a shared count map.

Implementations

impl<T: Ord + Clone + 'static, D, P: Pull<Bundle<T, D>>> Counter<T, D, P>[src]

pub fn next(&mut self) -> Option<&mut Bundle<T, D>>[src]

Retrieves the next timestamp and batch of data.

impl<T: Ord + Clone + 'static, D, P: Pull<Bundle<T, D>>> Counter<T, D, P>[src]

pub fn new(pullable: P) -> Self[src]

Allocates a new Counter from a boxed puller.

pub fn consumed(&self) -> &Rc<RefCell<ChangeBatch<T>>>[src]

A references to shared changes in counts, for cloning or draining.

Auto Trait Implementations

impl<T, D, P> !RefUnwindSafe for Counter<T, D, P>

impl<T, D, P> !Send for Counter<T, D, P>

impl<T, D, P> !Sync for Counter<T, D, P>

impl<T, D, P> Unpin for Counter<T, D, P> where
    D: Unpin,
    P: Unpin

impl<T, D, P> !UnwindSafe for Counter<T, D, P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.