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