pub struct Thread { /* private fields */ }
Expand description
An allocator for intra-thread communication.
Implementations§
Trait Implementations§
Source§impl Allocate for Thread
impl Allocate for Thread
Source§fn allocate<T: 'static>(
&mut self,
identifier: usize,
) -> (Vec<Box<dyn Push<Message<T>>>>, Box<dyn Pull<Message<T>>>)
fn allocate<T: 'static>( &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 Thread
impl !RefUnwindSafe for Thread
impl !Send for Thread
impl !Sync for Thread
impl Unpin for Thread
impl !UnwindSafe for Thread
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