#[repr(C)]pub struct SchedSwitchRecord {
pub cpu: RuntimeCpuId,
pub previous_thread: u64,
pub next_thread: u64,
pub timestamp_ns: u64,
pub reason: u32,
}Expand description
Allocation-free scheduler switch diagnostic record.
Fields§
§cpu: RuntimeCpuIdLogical CPU performing the switch.
previous_thread: u64Previous generation-based thread identifier encoded as a scalar.
next_thread: u64Next generation-based thread identifier encoded as a scalar.
timestamp_ns: u64Monotonic switch timestamp.
reason: u32Policy-specific reason code defined by ax-task.
Trait Implementations§
Source§impl Clone for SchedSwitchRecord
impl Clone for SchedSwitchRecord
Source§fn clone(&self) -> SchedSwitchRecord
fn clone(&self) -> SchedSwitchRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchedSwitchRecord
Source§impl Debug for SchedSwitchRecord
impl Debug for SchedSwitchRecord
impl Eq for SchedSwitchRecord
Source§impl PartialEq for SchedSwitchRecord
impl PartialEq for SchedSwitchRecord
impl StructuralPartialEq for SchedSwitchRecord
Auto Trait Implementations§
impl Freeze for SchedSwitchRecord
impl RefUnwindSafe for SchedSwitchRecord
impl Send for SchedSwitchRecord
impl Sync for SchedSwitchRecord
impl Unpin for SchedSwitchRecord
impl UnsafeUnpin for SchedSwitchRecord
impl UnwindSafe for SchedSwitchRecord
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