pub struct TaskwdEntry { /* private fields */ }Expand description
A watched task’s registration. Dropping it stops the watch — C
taskwdRemove (taskwd.c:207-244) on every exit path, including the ones
C’s callers have to remember.
Implementations§
Source§impl TaskwdEntry
impl TaskwdEntry
Sourcepub fn check_in(&self)
pub fn check_in(&self)
“Still here” — call it once per pass round the task’s loop.
One relaxed increment: cheap enough for a loop that runs at scan rate, and it reads no clock, so the watchdog stays the only owner of the timing question.
Sourcepub fn info(&self) -> &TaskInfo
pub fn info(&self) -> &TaskInfo
What the monitors and taskwd_show know this task as.
Trait Implementations§
Source§impl Drop for TaskwdEntry
impl Drop for TaskwdEntry
Auto Trait Implementations§
impl !RefUnwindSafe for TaskwdEntry
impl !UnwindSafe for TaskwdEntry
impl Freeze for TaskwdEntry
impl Send for TaskwdEntry
impl Sync for TaskwdEntry
impl Unpin for TaskwdEntry
impl UnsafeUnpin for TaskwdEntry
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