pub struct TaskTable { /* private fields */ }Expand description
Unified registry of all tasks: the root loop plus one child per sub-agent. The sole source of
truth for schedulability and lineage; the AgentProcess view is derived from it.
Implementations§
Source§impl TaskTable
impl TaskTable
pub fn new() -> Self
pub fn insert(&mut self, tcb: Tcb)
pub fn get(&self, id: &str) -> Option<&Tcb>
pub fn get_mut(&mut self, id: &str) -> Option<&mut Tcb>
pub fn all(&self) -> &[Tcb]
pub fn children_of(&self, parent: &str) -> Vec<&Tcb>
pub fn runnable(&self) -> Vec<&Tcb>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskTable
impl RefUnwindSafe for TaskTable
impl Send for TaskTable
impl Sync for TaskTable
impl Unpin for TaskTable
impl UnsafeUnpin for TaskTable
impl UnwindSafe for TaskTable
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