pub enum ContextSwitchRecord {
In {
prev_pid: Option<i32>,
prev_tid: Option<i32>,
},
Out {
next_pid: Option<i32>,
next_tid: Option<i32>,
preempted: TaskWasPreempted,
},
}
Variants
In
Out
Implementations
Trait Implementations
sourceimpl Clone for ContextSwitchRecord
impl Clone for ContextSwitchRecord
sourcefn clone(&self) -> ContextSwitchRecord
fn clone(&self) -> ContextSwitchRecord
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 ContextSwitchRecord
impl Debug for ContextSwitchRecord
sourceimpl Hash for ContextSwitchRecord
impl Hash for ContextSwitchRecord
sourceimpl PartialEq<ContextSwitchRecord> for ContextSwitchRecord
impl PartialEq<ContextSwitchRecord> for ContextSwitchRecord
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ContextSwitchRecord) -> bool
fn ne(&self, other: &ContextSwitchRecord) -> bool
This method tests for !=
.
impl Copy for ContextSwitchRecord
impl Eq for ContextSwitchRecord
impl StructuralEq 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
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