pub struct SchedSnapshot {
pub clock: u64,
pub ready_len: usize,
pub tasks: Vec<TaskView>,
pub channels: Vec<ChanView>,
}Expand description
A deterministic, read-only snapshot of the scheduler between steps — the observability seam the browser drive loop emits to the Studio so a running concurrent program shows its live task and channel state instead of freezing the UI.
Fields§
§clock: u64The logical clock (the timer wheel’s current tick).
ready_len: usizeHow many tasks are ready to run right now.
tasks: Vec<TaskView>Every task, sorted by id (deterministic order for a stable UI).
channels: Vec<ChanView>Every channel, sorted by id.
Trait Implementations§
Source§impl Clone for SchedSnapshot
impl Clone for SchedSnapshot
Source§fn clone(&self) -> SchedSnapshot
fn clone(&self) -> SchedSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedSnapshot
impl Debug for SchedSnapshot
Source§impl PartialEq for SchedSnapshot
impl PartialEq for SchedSnapshot
Source§fn eq(&self, other: &SchedSnapshot) -> bool
fn eq(&self, other: &SchedSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchedSnapshot
impl StructuralPartialEq for SchedSnapshot
Auto Trait Implementations§
impl Freeze for SchedSnapshot
impl RefUnwindSafe for SchedSnapshot
impl Send for SchedSnapshot
impl Sync for SchedSnapshot
impl Unpin for SchedSnapshot
impl UnsafeUnpin for SchedSnapshot
impl UnwindSafe for SchedSnapshot
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