pub struct BackgroundExecutor { /* private fields */ }Expand description
Owns the three background facilities (callback pool, delayed timer, scanOnce worker) and every thread backing them. Constructing it starts the threads; dropping it stops and joins them.
The delayed timer fires its due callbacks into the callback pool, exactly as
C’s notify routes an expired epicsTimer back through callbackRequest
(callback.c:404-419).
Implementations§
Source§impl BackgroundExecutor
impl BackgroundExecutor
Sourcepub fn handle(&self) -> BackgroundHandle
pub fn handle(&self) -> BackgroundHandle
A cheap, clonable handle over all three facilities — the seam route for RTEMS synchronous-tail hand-offs.
Sourcepub fn callbacks(&self) -> &CallbackPool
pub fn callbacks(&self) -> &CallbackPool
The callback executor pool.
Sourcepub fn timer(&self) -> &DelayedTimer
pub fn timer(&self) -> &DelayedTimer
The delayed-callback timer.
Sourcepub fn scan_once(&self) -> &ScanOnceQueue
pub fn scan_once(&self) -> &ScanOnceQueue
The scanOnce facility.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundExecutor
impl !UnwindSafe for BackgroundExecutor
impl Freeze for BackgroundExecutor
impl Send for BackgroundExecutor
impl Sync for BackgroundExecutor
impl Unpin for BackgroundExecutor
impl UnsafeUnpin for BackgroundExecutor
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