Struct nix::sched::CpuSet
#[repr(C)]
pub struct CpuSet { /* fields hidden */ }
Documentation
CpuSet represent a bit-mask of CPUs. CpuSets are used by sched_setaffinity and sched_getaffinity for example.
This is a wrapper around libc::cpu_set_t
.
Implementations
Trait Implementations
impl Debug for CpuSet
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for CpuSet
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for CpuSet
impl StructuralPartialEq for CpuSet
Auto Trait Implementations
impl RefUnwindSafe for CpuSet
impl UnwindSafe for CpuSet
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T