pub enum ContextSwitchRecord {
In {
prev_pid: Option<i32>,
prev_tid: Option<i32>,
},
Out {
next_pid: Option<i32>,
next_tid: Option<i32>,
preempted: TaskWasPreempted,
},
}Variants§
Implementations§
Trait Implementations§
source§impl Clone for ContextSwitchRecord
impl Clone for ContextSwitchRecord
source§fn clone(&self) -> ContextSwitchRecord
fn clone(&self) -> ContextSwitchRecord
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 ContextSwitchRecord
impl Debug for ContextSwitchRecord
source§impl Hash for ContextSwitchRecord
impl Hash for ContextSwitchRecord
source§impl PartialEq for ContextSwitchRecord
impl PartialEq for ContextSwitchRecord
source§fn eq(&self, other: &ContextSwitchRecord) -> bool
fn eq(&self, other: &ContextSwitchRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ContextSwitchRecord
impl Eq for ContextSwitchRecord
impl StructuralPartialEq for ContextSwitchRecord
Auto Trait Implementations§
impl RefUnwindSafe for ContextSwitchRecord
impl Send for ContextSwitchRecord
impl Sync for ContextSwitchRecord
impl Unpin for ContextSwitchRecord
impl UnwindSafe for ContextSwitchRecord
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