Struct glommio::CpuLocation
source · 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: usize
Holds the CPU id. This is the most granular field and will distinguish
among hyper-threads
.
core: usize
Holds the core id on which the cpu
is located.
package: usize
Holds the package or socket id on which the cpu
is located.
numa_node: usize
Holds 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 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 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
source§fn eq(&self, other: &CpuLocation) -> bool
fn eq(&self, other: &CpuLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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