pub struct SnapshotCell(/* private fields */);Expand description
2026-09-25: The run’s snapshot cell: the scheduler writes it, the TUI
reads it. serve creates one per run and shares it as an Arc, by the
same route as SchedLevers.
Implementations§
Source§impl SnapshotCell
impl SnapshotCell
Sourcepub fn publish(&self, s: SchedulerSnapshot)
pub fn publish(&self, s: SchedulerSnapshot)
2026-09-25: Replaces the held snapshot.
Sourcepub fn read(&self) -> Option<SchedulerSnapshot>
pub fn read(&self) -> Option<SchedulerSnapshot>
2026-09-25: The latest snapshot, if one has been published.
Trait Implementations§
Source§impl Default for SnapshotCell
impl Default for SnapshotCell
Source§fn default() -> SnapshotCell
fn default() -> SnapshotCell
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SnapshotCell
impl !RefUnwindSafe for SnapshotCell
impl Send for SnapshotCell
impl Sync for SnapshotCell
impl Unpin for SnapshotCell
impl UnwindSafe for SnapshotCell
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