pub struct CpuLocation {
pub cpu: usize,
pub core: usize,
pub package: usize,
pub numa_node: usize,
}Expand description
A description of the CPU’s location in the machine topology.
Fields§
§cpu: usizeHolds the CPU id. This is the most granular field and will distinguish
among hyper-threads.
core: usizeHolds the core id on which the cpu is located.
package: usizeHolds the package or socket id on which the cpu is located.
numa_node: usizeHolds the NUMA node on which the cpu is located.
Trait Implementations§
Source§impl Clone for CpuLocation
impl Clone for CpuLocation
Source§fn clone(&self) -> CpuLocation
fn clone(&self) -> CpuLocation
Returns a duplicate 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 moreSource§impl Debug for CpuLocation
impl Debug for CpuLocation
Source§impl FromIterator<CpuLocation> for CpuSet
impl FromIterator<CpuLocation> for CpuSet
Source§fn from_iter<I: IntoIterator<Item = CpuLocation>>(cpus: I) -> Self
fn from_iter<I: IntoIterator<Item = CpuLocation>>(cpus: I) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for CpuLocation
impl Hash for CpuLocation
Source§impl PartialEq for CpuLocation
impl PartialEq for CpuLocation
impl Eq for CpuLocation
impl StructuralPartialEq for CpuLocation
Auto Trait Implementations§
impl Freeze for CpuLocation
impl RefUnwindSafe for CpuLocation
impl Send for CpuLocation
impl Sync for CpuLocation
impl Unpin for CpuLocation
impl UnwindSafe for CpuLocation
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