timely_communication::allocator::thread

Type Alias ThreadPusher

Source
pub type ThreadPusher<T> = Pusher<T, Pusher<T>>;
Expand description

Thread-local counting channel push endpoint.

Aliased Type§

struct ThreadPusher<T> { /* private fields */ }

Implementations

Source§

impl<T, P: Push<T>> Pusher<T, P>

Source

pub fn new(pusher: P, index: usize, events: Rc<RefCell<Vec<usize>>>) -> Self

Wraps a pusher with a message counter.

Trait Implementations

Source§

impl<T, P: Push<T>> Push<T> for Pusher<T, P>

Source§

fn push(&mut self, element: &mut Option<T>)

Pushes element with the opportunity to take ownership.
Source§

fn send(&mut self, element: T)

Pushes element and drops any resulting resources.
Source§

fn done(&mut self)

Pushes None, conventionally signalling a flush.