Enum timely::communication::allocator::Generic [−][src]
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
impl Generic
[src]
pub fn index(&self) -> usize
[src]
The index of the worker out of (0..self.peers())
.
pub fn peers(&self) -> usize
[src]
The number of workers.
pub fn release(&mut self)
[src]
Perform work after scheduling operators.
Trait Implementations
impl Allocate for Generic
[src]
pub fn index(&self) -> usize
[src]
pub fn peers(&self) -> usize
[src]
pub 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,
[src]
&mut self,
identifier: usize
) -> (Vec<Box<dyn Push<Message<T>> + 'static, Global>, Global>, Box<dyn Pull<Message<T>> + 'static, Global>) where
T: Data,
pub fn receive(&mut self)
[src]
pub fn release(&mut self)
[src]
pub fn events(&self) -> &Rc<RefCell<VecDeque<(usize, Event)>>>
[src]
pub fn await_events(&self, _duration: Option<Duration>)
[src]
pub fn pipeline<T>(
&mut self,
identifier: usize
) -> (Pusher<Message<T>, Pusher<Message<T>>>, Puller<Message<T>, Puller<Message<T>>>) where
T: 'static,
[src]
&mut self,
identifier: usize
) -> (Pusher<Message<T>, Pusher<Message<T>>>, Puller<Message<T>, Puller<Message<T>>>) where
T: 'static,
Auto Trait Implementations
impl !RefUnwindSafe for Generic
impl !Send for Generic
impl !Sync for Generic
impl Unpin for Generic
impl !UnwindSafe for Generic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,