pub enum SchedulingStrategy {
FIFO,
Priority,
ShortestJobFirst,
EarliestDeadlineFirst,
FairShare {
time_quantum: Duration,
},
ResourceAware,
Custom {
schedule_fn: fn(&[ScheduledTask], &ResourcePool) -> Option<TaskId>,
},
}Expand description
Scheduling strategy
Variants§
FIFO
First-In-First-Out
Priority
Priority-based scheduling
ShortestJobFirst
Shortest Job First
EarliestDeadlineFirst
Earliest Deadline First
Fair share scheduling
ResourceAware
Resource-aware scheduling
Custom
Custom scheduling function
Fields
§
schedule_fn: fn(&[ScheduledTask], &ResourcePool) -> Option<TaskId>Trait Implementations§
Source§impl Clone for SchedulingStrategy
impl Clone for SchedulingStrategy
Source§fn clone(&self) -> SchedulingStrategy
fn clone(&self) -> SchedulingStrategy
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 moreAuto Trait Implementations§
impl Freeze for SchedulingStrategy
impl RefUnwindSafe for SchedulingStrategy
impl Send for SchedulingStrategy
impl Sync for SchedulingStrategy
impl Unpin for SchedulingStrategy
impl UnwindSafe for SchedulingStrategy
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