pub enum SchedulingStrategy {
Random,
RoundRobin,
Adversarial,
}Expand description
Strategy for choosing which thread to schedule next.
Variants§
Random
Seed-driven random scheduling: use DetRng to pick the next thread.
RoundRobin
Fixed round-robin: threads execute in a deterministic rotation.
Adversarial
Adversarial: always pick the thread most likely to cause races (e.g., the thread that last accessed shared state).
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 moreSource§impl Debug for SchedulingStrategy
impl Debug for SchedulingStrategy
Source§impl Default for SchedulingStrategy
impl Default for SchedulingStrategy
Source§fn default() -> SchedulingStrategy
fn default() -> SchedulingStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchedulingStrategy
impl<'de> Deserialize<'de> for SchedulingStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SchedulingStrategy
impl PartialEq for SchedulingStrategy
Source§impl Serialize for SchedulingStrategy
impl Serialize for SchedulingStrategy
impl Copy for SchedulingStrategy
impl Eq for SchedulingStrategy
impl StructuralPartialEq for SchedulingStrategy
Auto Trait Implementations§
impl Freeze for SchedulingStrategy
impl RefUnwindSafe for SchedulingStrategy
impl Send for SchedulingStrategy
impl Sync for SchedulingStrategy
impl Unpin for SchedulingStrategy
impl UnsafeUnpin 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