pub struct ThreadedExecutor<NID: PartialEq + Send, TID: PartialEq + Send> { /* private fields */ }Expand description
Threaded Executor
The Threaded Executor stores nodes in a bunch of SimpleExecutors on given threads. On the update loop each of hte SimpleExecutors execute their nodes in parallel
Implementations§
Trait Implementations§
Source§impl<NID: PartialEq + Send + 'static, TID: PartialEq + Send + 'static> Executor<NID> for ThreadedExecutor<NID, TID>
impl<NID: PartialEq + Send + 'static, TID: PartialEq + Send + 'static> Executor<NID> for ThreadedExecutor<NID, TID>
Source§fn update_for_ms(&mut self, ms: u128)
fn update_for_ms(&mut self, ms: u128)
Run the update loop for a set amount of time (in milliseconds)
Source§fn update_loop(&mut self)
fn update_loop(&mut self)
Run the update loop until the executor’s interrupt is called
Source§fn check_interrupt(&mut self) -> bool
fn check_interrupt(&mut self) -> bool
Check whether the program has been interrupted Read more
Auto Trait Implementations§
impl<NID, TID> Freeze for ThreadedExecutor<NID, TID>where
TID: Freeze,
impl<NID, TID> !RefUnwindSafe for ThreadedExecutor<NID, TID>
impl<NID, TID> Send for ThreadedExecutor<NID, TID>
impl<NID, TID> !Sync for ThreadedExecutor<NID, TID>
impl<NID, TID> Unpin for ThreadedExecutor<NID, TID>where
TID: Unpin,
impl<NID, TID> !UnwindSafe for ThreadedExecutor<NID, TID>
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