pub struct ActiveRuns { /* private fields */ }Expand description
Runs in progress and the tick each has reached, and the finished runs waiting to be committed, shared by clones.
Implementations§
Source§impl ActiveRuns
impl ActiveRuns
Sourcepub fn waiting_count(&self) -> usize
pub fn waiting_count(&self) -> usize
Number of runs that finished and wait for an earlier run to be committed.
Note that a batch that ends before committing every run leaves the runs still waiting in the count.
Sourcepub fn watch(&self, run: PlannedRun, end_tick: u64) -> RunWatch
pub fn watch(&self, run: PlannedRun, end_tick: u64) -> RunWatch
Adds run at tick 0, ending at end_tick, and returns the watch that moves it on and removes it on drop.
Sourcepub fn mark_committed(&self, run_id: u64)
pub fn mark_committed(&self, run_id: u64)
Removes run run_id from the runs waiting to be committed.
Trait Implementations§
Source§impl Clone for ActiveRuns
impl Clone for ActiveRuns
Source§impl Debug for ActiveRuns
impl Debug for ActiveRuns
Auto Trait Implementations§
impl Freeze for ActiveRuns
impl RefUnwindSafe for ActiveRuns
impl Send for ActiveRuns
impl Sync for ActiveRuns
impl Unpin for ActiveRuns
impl UnsafeUnpin for ActiveRuns
impl UnwindSafe for ActiveRuns
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more