pub enum SchedPolicy {
Rr,
Fifo,
Nice,
None,
}Expand description
Scheduling class applied to a pool’s threads.
Variants§
Rr
SCHED_RR realtime (default for timing). Round-robin so a busy
realtime thread can’t hard-starve a core the way Fifo can.
Fifo
SCHED_FIFO realtime — tightest, but a runaway thread starves the core.
Nice
A nice bump (no privileges required).
None
Plain (default) scheduling.
Implementations§
Trait Implementations§
Source§impl Clone for SchedPolicy
impl Clone for SchedPolicy
impl Copy for SchedPolicy
Source§impl Debug for SchedPolicy
impl Debug for SchedPolicy
impl Eq for SchedPolicy
Source§impl PartialEq for SchedPolicy
impl PartialEq for SchedPolicy
impl StructuralPartialEq for SchedPolicy
Auto Trait Implementations§
impl Freeze for SchedPolicy
impl RefUnwindSafe for SchedPolicy
impl Send for SchedPolicy
impl Sync for SchedPolicy
impl Unpin for SchedPolicy
impl UnsafeUnpin for SchedPolicy
impl UnwindSafe for SchedPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.