pub struct ReadyIndex { /* private fields */ }Expand description
A view of all runs in the Ready state.
This structure provides filtering and traversal over runs that are eligible to be leased. Runs transition from Ready to Leased (or Canceled) when selected by the scheduler.
Implementations§
Source§impl ReadyIndex
impl ReadyIndex
Sourcepub fn from_runs(runs: Vec<RunInstance>) -> Self
pub fn from_runs(runs: Vec<RunInstance>) -> Self
Creates a ready index from a vector of runs.
All runs must be in the Ready state.
Sourcepub fn runs(&self) -> &[RunInstance]
pub fn runs(&self) -> &[RunInstance]
Returns all runs in the ready index.
Trait Implementations§
Source§impl Clone for ReadyIndex
impl Clone for ReadyIndex
Source§fn clone(&self) -> ReadyIndex
fn clone(&self) -> ReadyIndex
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 ReadyIndex
impl Debug for ReadyIndex
Source§impl Default for ReadyIndex
impl Default for ReadyIndex
Source§fn default() -> ReadyIndex
fn default() -> ReadyIndex
Returns the “default value” for a type. Read more
Source§impl From<&[RunInstance]> for ReadyIndex
impl From<&[RunInstance]> for ReadyIndex
Source§fn from(runs: &[RunInstance]) -> Self
fn from(runs: &[RunInstance]) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReadyIndex
impl PartialEq for ReadyIndex
impl Eq for ReadyIndex
impl StructuralPartialEq for ReadyIndex
Auto Trait Implementations§
impl Freeze for ReadyIndex
impl RefUnwindSafe for ReadyIndex
impl Send for ReadyIndex
impl Sync for ReadyIndex
impl Unpin for ReadyIndex
impl UnsafeUnpin for ReadyIndex
impl UnwindSafe for ReadyIndex
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