pub trait TaskwdMonitor: Send + Sync {
// Provided methods
fn insert(&self, task: &TaskInfo) { ... }
fn notify(&self, task: &TaskInfo, suspended: bool) { ... }
fn remove(&self, task: &TaskInfo) { ... }
}Expand description
Something watching every task, rather than one — C’s taskwdMonitor
(taskwd.h:41-45). Every method is optional there (a NULL slot is
skipped), so every method here has a do-nothing default.
Called from the registering task’s thread (insert, remove) or the
watchdog thread (notify), always with no watchdog lock held, so a monitor
may call back into this module.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".