Trait timely_communication::allocator::Allocate[][src]

pub trait Allocate {
    fn index(&self) -> usize;
fn peers(&self) -> usize;
fn allocate<T: Data>(
        &mut self
    ) -> (Vec<Box<Push<T>>>, Box<Pull<T>>, Option<usize>); }

Required Methods

The index of the worker out of (0..self.peers()).

The number of workers.

Constructs several send endpoints and one receive endpoint.

Implementors