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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaskWasPreempted
impl Debug for TaskWasPreempted
Source§impl Hash for TaskWasPreempted
impl Hash for TaskWasPreempted
Source§impl PartialEq for TaskWasPreempted
impl PartialEq for TaskWasPreempted
impl Copy for TaskWasPreempted
impl Eq for TaskWasPreempted
impl StructuralPartialEq for TaskWasPreempted
Auto Trait Implementations§
impl Freeze for TaskWasPreempted
impl RefUnwindSafe for TaskWasPreempted
impl Send for TaskWasPreempted
impl Sync for TaskWasPreempted
impl Unpin for TaskWasPreempted
impl UnwindSafe for TaskWasPreempted
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