Enum axtask::SchedPolicy
source · pub enum SchedPolicy {
SCHED_OTHER = 0,
SCHED_FIFO = 1,
SCHED_RR = 2,
SCHED_BATCH = 3,
SCHED_IDLE = 5,
SCHED_UNKNOWN = 6,
}
Expand description
The policy of the scheduler
Variants§
SCHED_OTHER = 0
The default time-sharing scheduler
SCHED_FIFO = 1
The first-in, first-out scheduler
SCHED_RR = 2
The round-robin scheduler
SCHED_BATCH = 3
The batch scheduler
SCHED_IDLE = 5
The idle task scheduler
SCHED_UNKNOWN = 6
Unknown scheduler
Trait Implementations§
source§impl Clone for SchedPolicy
impl Clone for SchedPolicy
source§fn clone(&self) -> SchedPolicy
fn clone(&self) -> SchedPolicy
Returns a copy 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 From<usize> for SchedPolicy
impl From<usize> for SchedPolicy
source§fn from(policy: usize) -> SchedPolicy
fn from(policy: usize) -> SchedPolicy
Converts to this type from the input type.
source§impl PartialEq for SchedPolicy
impl PartialEq for SchedPolicy
source§fn eq(&self, other: &SchedPolicy) -> bool
fn eq(&self, other: &SchedPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SchedPolicy
impl Eq for SchedPolicy
impl StructuralEq for SchedPolicy
impl StructuralPartialEq for SchedPolicy
Auto Trait Implementations§
impl RefUnwindSafe for SchedPolicy
impl Send for SchedPolicy
impl Sync for SchedPolicy
impl Unpin 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