Skip to main content

CommonSchedInfo

Trait CommonSchedInfo 

Source
pub trait CommonSchedInfo {
    // Required method
    fn cpu(&self) -> &AtomicCpuId;
}
Expand description

Trait for fetching common scheduling information.

Required Methods§

Source

fn cpu(&self) -> &AtomicCpuId

Gets the CPU that the task is running on or lately ran on.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§