#[repr(C)]pub struct ContextSwitchEvent {
pub old_thread_id: u32,
pub new_thread_id: u32,
pub old_thread_state: u8,
}Expand description
Context switch event data
| Bits | Field | Description |
|---|---|---|
| [0:31] | old_thread_id | ID of the thread that was running before the context switch |
| [32:63] | new_thread_id | ID of the thread that is running after the context switch |
| [64:71] | old_thread_state | State of the thread that was running before the context switch |
| [72:95] | reserved | Read Ignored Write Zero |
Fields§
§old_thread_id: u32§new_thread_id: u32§old_thread_state: u8Implementations§
Source§impl ContextSwitchEvent
impl ContextSwitchEvent
Sourcepub fn read_from_buffer(buffer: &[u32]) -> Option<Self>
pub fn read_from_buffer(buffer: &[u32]) -> Option<Self>
Trait Implementations§
Source§impl Clone for ContextSwitchEvent
impl Clone for ContextSwitchEvent
impl Copy for ContextSwitchEvent
Source§impl Debug for ContextSwitchEvent
impl Debug for ContextSwitchEvent
impl Eq for ContextSwitchEvent
Source§impl PartialEq for ContextSwitchEvent
impl PartialEq for ContextSwitchEvent
impl StructuralPartialEq for ContextSwitchEvent
Auto Trait Implementations§
impl Forget for ContextSwitchEvent
impl Freeze for ContextSwitchEvent
impl Move for ContextSwitchEvent
impl RefUnwindSafe for ContextSwitchEvent
impl Send for ContextSwitchEvent
impl Sync for ContextSwitchEvent
impl Unpin for ContextSwitchEvent
impl UnsafeUnpin for ContextSwitchEvent
impl UnwindSafe for ContextSwitchEvent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)