pub struct RunningIndex { /* private fields */ }Expand description
A view of all active runs (Leased and Running).
This structure provides filtering and traversal over runs that are currently in-flight. Active runs transition from Running to either:
- RetryWait (on failure, if retries remain)
- Completed (on success)
- Failed (on failure, no retries remaining)
- Canceled
Implementations§
Source§impl RunningIndex
impl RunningIndex
Sourcepub fn from_runs(runs: Vec<RunInstance>) -> Self
pub fn from_runs(runs: Vec<RunInstance>) -> Self
Creates a running index from a vector of runs.
All runs must be in the Leased or Running state.
Sourcepub fn runs(&self) -> &[RunInstance]
pub fn runs(&self) -> &[RunInstance]
Returns all runs in the running index.
Sourcepub fn leased(&self) -> Vec<&RunInstance>
pub fn leased(&self) -> Vec<&RunInstance>
Returns only leased runs.
Sourcepub fn executing(&self) -> Vec<&RunInstance>
pub fn executing(&self) -> Vec<&RunInstance>
Returns only currently executing runs.
Trait Implementations§
Source§impl Clone for RunningIndex
impl Clone for RunningIndex
Source§fn clone(&self) -> RunningIndex
fn clone(&self) -> RunningIndex
Returns a duplicate of the value. Read more
1.0.0 · 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 RunningIndex
impl Debug for RunningIndex
Source§impl Default for RunningIndex
impl Default for RunningIndex
Source§fn default() -> RunningIndex
fn default() -> RunningIndex
Returns the “default value” for a type. Read more
Source§impl From<&[RunInstance]> for RunningIndex
impl From<&[RunInstance]> for RunningIndex
Source§fn from(runs: &[RunInstance]) -> Self
fn from(runs: &[RunInstance]) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RunningIndex
impl PartialEq for RunningIndex
impl Eq for RunningIndex
impl StructuralPartialEq for RunningIndex
Auto Trait Implementations§
impl Freeze for RunningIndex
impl RefUnwindSafe for RunningIndex
impl Send for RunningIndex
impl Sync for RunningIndex
impl Unpin for RunningIndex
impl UnsafeUnpin for RunningIndex
impl UnwindSafe for RunningIndex
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