pub struct CpuSet { /* private fields */ }Expand description
CPU affinity expressed against one crate::runtime::TaskSystem topology.
Implementations§
Source§impl CpuSet
impl CpuSet
Sourcepub fn remove(&mut self, cpu: CpuId) -> bool
pub fn remove(&mut self, cpu: CpuId) -> bool
Disables one CPU if it is represented by this set.
Sourcepub fn topology_len(&self) -> usize
pub fn topology_len(&self) -> usize
Returns the number of CPUs represented by the set.
Trait Implementations§
impl Eq for CpuSet
impl StructuralPartialEq for CpuSet
Auto Trait Implementations§
impl Freeze for CpuSet
impl RefUnwindSafe for CpuSet
impl Send for CpuSet
impl Sync for CpuSet
impl Unpin for CpuSet
impl UnsafeUnpin for CpuSet
impl UnwindSafe for CpuSet
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