pub struct CpuSet { /* private fields */ }Expand description
A set of CPU IDs.
CpuSet represents a collection of CPU cores, typically used for thread affinity. It supports up to 1024 CPUs, matching the Linux kernel limit.
Implementations§
Source§impl CpuSet
impl CpuSet
Sourcepub fn intersection(&self, other: &Self) -> Self
pub fn intersection(&self, other: &Self) -> Self
Create an intersection of two CPU sets.
Sourcepub fn as_raw_mut(&mut self) -> &mut [u64; 16]
pub fn as_raw_mut(&mut self) -> &mut [u64; 16]
Get a mutable reference to the raw bitmap for FFI.
Trait Implementations§
Source§impl FromIterator<u32> for CpuSet
impl FromIterator<u32> for CpuSet
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 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