pub struct ProcessAllocator { /* private fields */ }
Expand description
A serializing allocator for inter-thread intra-process communication.
Trait Implementations§
source§impl Allocate for ProcessAllocator
impl Allocate for ProcessAllocator
source§fn allocate<T: Data>(
&mut self,
identifier: usize,
) -> (Vec<Box<dyn Push<Message<T>>>>, Box<dyn Pull<Message<T>>>)
fn allocate<T: Data>( &mut self, identifier: usize, ) -> (Vec<Box<dyn Push<Message<T>>>>, Box<dyn Pull<Message<T>>>)
Constructs several send endpoints and one receive endpoint.
source§fn events(&self) -> &Rc<RefCell<Vec<usize>>>
fn events(&self) -> &Rc<RefCell<Vec<usize>>>
A shared queue of communication events with channel identifier. Read more
source§fn pipeline<T: 'static>(
&mut self,
identifier: usize,
) -> (ThreadPusher<Message<T>>, ThreadPuller<Message<T>>)
fn pipeline<T: 'static>( &mut self, identifier: usize, ) -> (ThreadPusher<Message<T>>, ThreadPuller<Message<T>>)
Constructs a pipeline channel from the worker to itself. Read more
Auto Trait Implementations§
impl Freeze for ProcessAllocator
impl !RefUnwindSafe for ProcessAllocator
impl !Send for ProcessAllocator
impl !Sync for ProcessAllocator
impl Unpin for ProcessAllocator
impl !UnwindSafe for ProcessAllocator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more