Enum timely_util::Generic
pub enum Generic {
Thread(Thread),
Process(Process),
ProcessBinary(ProcessAllocator),
ZeroCopy(TcpAllocator<Process>),
}
Expand description
Enumerates known implementors of Allocate
.
Passes trait method calls on to members.
Variants§
Thread(Thread)
Intra-thread allocator.
Process(Process)
Inter-thread, intra-process allocator.
ProcessBinary(ProcessAllocator)
Inter-thread, intra-process serializing allocator.
ZeroCopy(TcpAllocator<Process>)
Inter-process allocator.
Implementations§
Trait Implementations§
§impl Allocate for Generic
impl Allocate for Generic
§fn allocate<T>(
&mut self,
identifier: usize
) -> (Vec<Box<dyn Push<Message<T>> + 'static, Global>, Global>, Box<dyn Pull<Message<T>> + 'static, Global>)where
T: Data,
fn allocate<T>(
&mut self,
identifier: usize
) -> (Vec<Box<dyn Push<Message<T>> + 'static, Global>, Global>, Box<dyn Pull<Message<T>> + 'static, Global>)where
T: Data,
Constructs several send endpoints and one receive endpoint.
§fn events(&self) -> &Rc<RefCell<VecDeque<(usize, Event), Global>>>
fn events(&self) -> &Rc<RefCell<VecDeque<(usize, Event), Global>>>
A shared queue of communication events with channel identifier. Read more
§fn await_events(&self, _duration: Option<Duration>)
fn await_events(&self, _duration: Option<Duration>)
Awaits communication events. Read more