Struct sysfs_rs::cpu::Cpu
[−]
[src]
pub struct Cpu { /* fields omitted */ }
Methods
impl Cpu
[src]
fn new(node: usize, id: usize) -> Result<Cpu, &'static str>
fn id(&self) -> usize
fn core_id(&self) -> usize
fn set_node_id(&mut self, node_id: usize)
fn node_id(&self) -> usize
fn physical_package_id(&self) -> usize
fn core_siblings(&self) -> Vec<bool>
fn thread_siblings(&self) -> Vec<bool>
fn is_core_sibling(&self, id: usize) -> bool
fn is_thread_sibling(&self, id: usize) -> bool
Trait Implementations
impl Clone for Cpu
[src]
fn clone(&self) -> Cpu
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more