pub enum TaskWasPreempted {
Yes,
No,
}
Expand description
Whether a task was in the TASK_RUNNING
state when it was switched
away from.
This helps understanding whether a workload is CPU or IO bound.
Variants§
Yes
When switching out, the task was in the TASK_RUNNING
state.
No
When switching out, the task was in a non-running state.
Trait Implementations§
source§impl Clone for TaskWasPreempted
impl Clone for TaskWasPreempted
source§fn clone(&self) -> TaskWasPreempted
fn clone(&self) -> TaskWasPreempted
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 more