pub enum CheckIn {
Every(Duration),
Unbounded,
}Expand description
What a task promises about coming back to check in.
The promise is the task’s, not the watchdog’s: it is the interval after which the task itself considers a missed check-in a fault, so a scan thread on a 10 Hz rate promises seconds, not milliseconds.
Variants§
Every(Duration)
Report the task once this long has passed with no check-in.
Detection is not instant: the watchdog only looks every
TASKWD_DELAY, so a task is reported between d and d + TASKWD_DELAY after its last check-in. C has the same granularity for
the same reason.
Unbounded
The task makes no promise — it is parked in something with no deadline
of its own. Listed by taskwd_show, never reported.
Trait Implementations§
impl Copy for CheckIn
impl Eq for CheckIn
impl StructuralPartialEq for CheckIn
Auto Trait Implementations§
impl Freeze for CheckIn
impl RefUnwindSafe for CheckIn
impl Send for CheckIn
impl Sync for CheckIn
impl Unpin for CheckIn
impl UnsafeUnpin for CheckIn
impl UnwindSafe for CheckIn
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