pub struct SelectionResult { /* private fields */ }Expand description
Result of running the default selector.
This structure contains the runs that should be selected (leased) from the ready index, in the order they should be selected.
Implementations§
Source§impl SelectionResult
impl SelectionResult
Sourcepub fn selected(&self) -> &[RunInstance]
pub fn selected(&self) -> &[RunInstance]
Returns the runs selected for leasing, in order.
Sourcepub fn into_selected(self) -> Vec<RunInstance>
pub fn into_selected(self) -> Vec<RunInstance>
Consumes self and returns the selected runs.
Sourcepub fn remaining(&self) -> &[RunInstance]
pub fn remaining(&self) -> &[RunInstance]
Returns the runs remaining in the ready index after selection.
Trait Implementations§
Source§impl Clone for SelectionResult
impl Clone for SelectionResult
Source§fn clone(&self) -> SelectionResult
fn clone(&self) -> SelectionResult
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 SelectionResult
impl Debug for SelectionResult
Source§impl PartialEq for SelectionResult
impl PartialEq for SelectionResult
impl Eq for SelectionResult
impl StructuralPartialEq for SelectionResult
Auto Trait Implementations§
impl Freeze for SelectionResult
impl RefUnwindSafe for SelectionResult
impl Send for SelectionResult
impl Sync for SelectionResult
impl Unpin for SelectionResult
impl UnsafeUnpin for SelectionResult
impl UnwindSafe for SelectionResult
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