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: Exchangeable>(
&mut self,
identifier: usize,
) -> (Vec<Box<dyn Push<T>>>, Box<dyn Pull<T>>)
fn allocate<T: Exchangeable>( &mut self, identifier: usize, ) -> (Vec<Box<dyn Push<T>>>, Box<dyn Pull<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<T>, ThreadPuller<T>)
fn pipeline<T: 'static>( &mut self, identifier: usize, ) -> (ThreadPusher<T>, ThreadPuller<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