pub struct RunState {
pub statuses: BTreeMap<Symbol, NodeStatus>,
pub counters: BTreeMap<Symbol, u64>,
pub events: Vec<RunEvent>,
pub live_edges: BTreeSet<(Symbol, Symbol)>,
}Expand description
The accumulated live state of a run.
Fields§
§statuses: BTreeMap<Symbol, NodeStatus>Per-node status.
counters: BTreeMap<Symbol, u64>Per-node event counter.
events: Vec<RunEvent>Ordered event log.
live_edges: BTreeSet<(Symbol, Symbol)>Currently live edges, by (from-node, to-node).
Implementations§
Source§impl RunState
impl RunState
Sourcepub fn apply_event(&mut self, event: RunEvent)
pub fn apply_event(&mut self, event: RunEvent)
Fold one event into the state.
Sourcepub fn status(&self, node: &Symbol) -> NodeStatus
pub fn status(&self, node: &Symbol) -> NodeStatus
The status of a node (Idle if unseen).
Sourcepub fn events_for(&self, node: &Symbol) -> Vec<&RunEvent>
pub fn events_for(&self, node: &Symbol) -> Vec<&RunEvent>
The events that concern a node, in order (for drill-down).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnsafeUnpin for RunState
impl UnwindSafe for RunState
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