Enum timely_communication::allocator::generic::Generic [−][src]
Enumerates known implementors of Allocate
.
Passes trait method calls on to members.
Variants
Thread(Thread)
Process(Process)
Binary(Binary)
Methods
impl Generic
[src]
impl Generic
pub fn index(&self) -> usize
[src]
pub fn index(&self) -> usize
The index of the worker out of (0..self.peers())
.
pub fn peers(&self) -> usize
[src]
pub fn peers(&self) -> usize
The number of workers.
pub fn allocate<T: Data>(
&mut self
) -> (Vec<Box<Push<T>>>, Box<Pull<T>>, Option<usize>)
[src]
pub fn allocate<T: Data>(
&mut self
) -> (Vec<Box<Push<T>>>, Box<Pull<T>>, Option<usize>)
Constructs several send endpoints and one receive endpoint.