pub struct CpuLocal { /* private fields */ }Expand description
Scheduler state that is created explicitly and mutated only by its owner CPU.
The object is !Unpin; runtimes store it in per-CPU pinned allocations and
publish it only after registration has completed.
Implementations§
Source§impl CpuLocal
impl CpuLocal
Sourcepub fn load_summary(&self) -> CpuLoadSummary
pub fn load_summary(&self) -> CpuLoadSummary
Returns one coherent remotely observable scheduling snapshot.
Sourcepub fn queued_summary(&self) -> usize
pub fn queued_summary(&self) -> usize
Returns the remotely observable queued runnable count.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CpuLocal
impl !Send for CpuLocal
impl !Sync for CpuLocal
impl !Unpin for CpuLocal
impl !UnsafeUnpin for CpuLocal
impl !UnwindSafe for CpuLocal
impl Freeze for CpuLocal
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