pub enum SchedPolicy {
Fair(Nice),
RealTimeRR {
prio: RealTimePriority,
},
RealTimeFifo {
prio: RealTimePriority,
},
Idle,
}Expand description
The scheduling policy of a task.
Variants§
Fair(Nice)
Completely Fair Scheduler
RealTimeRR
Real-Time Round-Robin
Fields
§
prio: RealTimePriorityRealTimeFifo
Real-Time FIFO
Fields
§
prio: RealTimePriorityIdle
Idle task (lowest priority)
Implementations§
Source§impl SchedPolicy
impl SchedPolicy
Sourcepub fn kind(&self) -> SchedPolicyKind
pub fn kind(&self) -> SchedPolicyKind
Performs the kind operation.
Trait Implementations§
Source§impl Clone for SchedPolicy
impl Clone for SchedPolicy
Source§fn clone(&self) -> SchedPolicy
fn clone(&self) -> SchedPolicy
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 SchedPolicy
impl Debug for SchedPolicy
Source§impl PartialEq for SchedPolicy
impl PartialEq for SchedPolicy
impl Copy for SchedPolicy
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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