pub enum SchedulePolicy {
Fifo,
Lifo,
RoundRobin,
Random,
Priority,
}Expand description
The ready-task selection discipline. Determinism holds under every policy:
Fifo/Lifo/RoundRobin/Priority are deterministic by construction, and
Random resolves its pick through the seeded Chooser, so it is reproducible
under a fixed seed.
Variants§
Fifo
Deterministic FIFO ready queue — fair, predictable. The default.
Lifo
LIFO (stack) — depth-first; better locality, but can starve siblings.
RoundRobin
Round-robin rotation with a cooperative quantum.
Random
Seeded-random ready pick — explores interleavings (fuzzing / race-finding).
Priority
Highest task priority first; FIFO within a priority band.
Trait Implementations§
Source§impl Clone for SchedulePolicy
impl Clone for SchedulePolicy
Source§fn clone(&self) -> SchedulePolicy
fn clone(&self) -> SchedulePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchedulePolicy
impl Debug for SchedulePolicy
Source§impl Default for SchedulePolicy
impl Default for SchedulePolicy
Source§impl Hash for SchedulePolicy
impl Hash for SchedulePolicy
Source§impl PartialEq for SchedulePolicy
impl PartialEq for SchedulePolicy
Source§fn eq(&self, other: &SchedulePolicy) -> bool
fn eq(&self, other: &SchedulePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SchedulePolicy
impl Eq for SchedulePolicy
impl StructuralPartialEq for SchedulePolicy
Auto Trait Implementations§
impl Freeze for SchedulePolicy
impl RefUnwindSafe for SchedulePolicy
impl Send for SchedulePolicy
impl Sync for SchedulePolicy
impl Unpin for SchedulePolicy
impl UnsafeUnpin for SchedulePolicy
impl UnwindSafe for SchedulePolicy
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