pub struct ContextSwitches {
pub voluntary: u64,
pub non_voluntary: u64,
}
Expand description
Statistics related to context switches
Fields§
§voluntary: u64
Count of voluntary context switches
non_voluntary: u64
Count of non-voluntary context switches
Trait Implementations§
Source§impl Clone for ContextSwitches
impl Clone for ContextSwitches
Source§fn clone(&self) -> ContextSwitches
fn clone(&self) -> ContextSwitches
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 Debug for ContextSwitches
impl Debug for ContextSwitches
impl Copy for ContextSwitches
Auto Trait Implementations§
impl Freeze for ContextSwitches
impl RefUnwindSafe for ContextSwitches
impl Send for ContextSwitches
impl Sync for ContextSwitches
impl Unpin for ContextSwitches
impl UnwindSafe for ContextSwitches
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