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 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 ContextSwitchRecord
impl Debug for ContextSwitchRecord
Source§impl Hash for ContextSwitchRecord
impl Hash for ContextSwitchRecord
Source§impl PartialEq for ContextSwitchRecord
impl PartialEq for ContextSwitchRecord
impl Copy for ContextSwitchRecord
impl Eq for ContextSwitchRecord
impl StructuralPartialEq for ContextSwitchRecord
Auto Trait Implementations§
impl Freeze for ContextSwitchRecord
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