Trait timely::communication::Pull

source ·
pub trait Pull<T> {
    // Required method
    fn pull(&mut self) -> &mut Option<T>;

    // Provided method
    fn recv(&mut self) -> Option<T> { ... }
}
Expand description

Pulling elements of type T.

Required Methods§

source

fn pull(&mut self) -> &mut Option<T>

Pulls an element and provides the opportunity to take ownership.

The puller may mutate the result, in particular take ownership of the data by replacing it with other data or even None. This allows the puller to return resources to the implementor.

If pull returns None this conventionally signals that no more data is available at the moment, and the puller should find something better to do.

Provided Methods§

source

fn recv(&mut self) -> Option<T>

Takes an Option<T> and leaves None behind.

Implementations on Foreign Types§

source§

impl<T, P> Pull<T> for Box<P>
where P: Pull<T> + ?Sized,

source§

fn pull(&mut self) -> &mut Option<T>

Implementors§

source§

impl<T> Pull<T> for timely::communication::allocator::thread::Puller<T>

source§

impl<T> Pull<T> for timely::communication::allocator::zero_copy::push_pull::Puller<T>
where T: Bytesable,

source§

impl<T> Pull<T> for PullerInner<T>
where T: Bytesable,

source§

impl<T, C: Container, P: Pull<Bundle<T, C>>> Pull<Bincode<Message<T, C>>> for LogPuller<T, C, P>

source§

impl<T, P> Pull<T> for timely::communication::allocator::counters::Puller<T, P>
where P: Pull<T>,