pub enum Switch {
OutTo {
task: Option<Task>,
preempt: bool,
},
InFrom(Option<Task>),
}
Expand description
Context switch info.
Variants§
OutTo
Switched out.
Fields
§
preempt: bool
Indicates whether the context switch was triggered by preemption.
Since linux-4.17
: https://github.com/torvalds/linux/commit/101592b4904ecf6b8ed2a4784d41d180319d95a1
InFrom(Option<Task>)
Switched in.
Contains info of the task being switched from if possible.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnwindSafe for Switch
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