pub struct CpuIdsHandle(/* private fields */);Implementations§
source§impl CpuIdsHandle
impl CpuIdsHandle
pub fn new(initial_state: Vec<LogicalCoreId>) -> Self
pub fn get_cores(&self) -> Vec<LogicalCoreId>
pub fn set_cores(&self, new_state: Vec<LogicalCoreId>)
pub fn get_version_relaxed(&self) -> u32
Trait Implementations§
source§impl Clone for CpuIdsHandle
impl Clone for CpuIdsHandle
source§fn clone(&self) -> CpuIdsHandle
fn clone(&self) -> CpuIdsHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CpuIdsHandle
impl !RefUnwindSafe for CpuIdsHandle
impl Send for CpuIdsHandle
impl Sync for CpuIdsHandle
impl Unpin for CpuIdsHandle
impl !UnwindSafe for CpuIdsHandle
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