pub struct ReadyRunSelectionInput { /* private fields */ }Expand description
Selector-ready input that pairs a run with a pre-resolved snapshot priority.
The scheduler should populate this structure before selection so sorting never depends on mutable metadata lookups during comparison.
Implementations§
Source§impl ReadyRunSelectionInput
impl ReadyRunSelectionInput
Sourcepub fn run(&self) -> &RunInstance
pub fn run(&self) -> &RunInstance
Returns a reference to the ready run candidate.
Sourcepub fn priority_snapshot(&self) -> i32
pub fn priority_snapshot(&self) -> i32
Returns the snapshot priority.
Source§impl ReadyRunSelectionInput
impl ReadyRunSelectionInput
Sourcepub fn new(run: RunInstance, priority_snapshot: i32) -> Self
pub fn new(run: RunInstance, priority_snapshot: i32) -> Self
Creates selector input from a ready run and an explicit snapshot priority.
Sourcepub fn from_ready_run(run: RunInstance) -> Self
pub fn from_ready_run(run: RunInstance) -> Self
Creates selector input from a ready run using the run’s snapshot priority.
Trait Implementations§
Source§impl Clone for ReadyRunSelectionInput
impl Clone for ReadyRunSelectionInput
Source§fn clone(&self) -> ReadyRunSelectionInput
fn clone(&self) -> ReadyRunSelectionInput
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 ReadyRunSelectionInput
impl Debug for ReadyRunSelectionInput
Source§impl PartialEq for ReadyRunSelectionInput
impl PartialEq for ReadyRunSelectionInput
impl Eq for ReadyRunSelectionInput
impl StructuralPartialEq for ReadyRunSelectionInput
Auto Trait Implementations§
impl Freeze for ReadyRunSelectionInput
impl RefUnwindSafe for ReadyRunSelectionInput
impl Send for ReadyRunSelectionInput
impl Sync for ReadyRunSelectionInput
impl Unpin for ReadyRunSelectionInput
impl UnsafeUnpin for ReadyRunSelectionInput
impl UnwindSafe for ReadyRunSelectionInput
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