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
sourceimpl Clone for TaskWasPreempted
impl Clone for TaskWasPreempted
sourcefn clone(&self) -> TaskWasPreempted
fn clone(&self) -> TaskWasPreempted
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TaskWasPreempted
impl Debug for TaskWasPreempted
sourceimpl Hash for TaskWasPreempted
impl Hash for TaskWasPreempted
sourceimpl PartialEq<TaskWasPreempted> for TaskWasPreempted
impl PartialEq<TaskWasPreempted> for TaskWasPreempted
impl Copy for TaskWasPreempted
impl Eq for TaskWasPreempted
impl StructuralEq for TaskWasPreempted
impl StructuralPartialEq for TaskWasPreempted
Auto Trait Implementations
impl RefUnwindSafe for TaskWasPreempted
impl Send for TaskWasPreempted
impl Sync for TaskWasPreempted
impl Unpin for TaskWasPreempted
impl UnwindSafe for TaskWasPreempted
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more