pub enum SchedulingPolicy {
FCFS,
Priority,
SIF,
LIF,
SOF,
LOF,
STF,
LTF,
}Expand description
Scheduling policy for request ordering
Variants§
FCFS
First-Come-First-Served: requests served in arrival order
Priority
Priority-based: requests ordered by priority value (lower = higher priority)
SIF
Shortest Input First: prioritize requests with smallest input length
LIF
Longest Input First: prioritize requests with largest input length
SOF
Shortest Output First: prioritize requests with smallest output length
LOF
Longest Output First: prioritize requests with largest output length
STF
Shortest Total First: prioritize requests with smallest total length
LTF
Longest Total First: prioritize requests with largest total length
Trait Implementations§
Source§impl Clone for SchedulingPolicy
impl Clone for SchedulingPolicy
Source§fn clone(&self) -> SchedulingPolicy
fn clone(&self) -> SchedulingPolicy
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 SchedulingPolicy
impl Debug for SchedulingPolicy
Source§impl FromStr for SchedulingPolicy
impl FromStr for SchedulingPolicy
Source§impl PartialEq for SchedulingPolicy
impl PartialEq for SchedulingPolicy
impl Copy for SchedulingPolicy
impl Eq for SchedulingPolicy
impl StructuralPartialEq for SchedulingPolicy
Auto Trait Implementations§
impl Freeze for SchedulingPolicy
impl RefUnwindSafe for SchedulingPolicy
impl Send for SchedulingPolicy
impl Sync for SchedulingPolicy
impl Unpin for SchedulingPolicy
impl UnsafeUnpin for SchedulingPolicy
impl UnwindSafe for SchedulingPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.