pub struct Cpu { /* private fields */ }
Implementations§
Source§impl Cpu
impl Cpu
pub fn new(node: usize, id: usize) -> Result<Cpu, &'static str>
pub fn id(&self) -> usize
pub fn core_id(&self) -> usize
pub fn set_node_id(&mut self, node_id: usize)
pub fn node_id(&self) -> usize
pub fn physical_package_id(&self) -> usize
pub fn core_siblings(&self) -> Vec<bool>
pub fn thread_siblings(&self) -> Vec<bool>
pub fn is_core_sibling(&self, id: usize) -> bool
pub fn is_thread_sibling(&self, id: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cpu
impl RefUnwindSafe for Cpu
impl Send for Cpu
impl Sync for Cpu
impl Unpin for Cpu
impl UnwindSafe for Cpu
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