#[non_exhaustive]pub struct Core {
pub id: u32,
pub package: u32,
pub logical: Vec<u32>,
pub kind: CoreKind,
pub capacity: Option<u16>,
pub numa_node: Option<u32>,
}Expand description
A physical core.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32Its id, unique across packages.
package: u32The package it is in.
logical: Vec<u32>Its logical CPU indexes.
kind: CoreKindIts kind.
capacity: Option<u16>Linux cpu_capacity, 0 to 1024.
numa_node: Option<u32>The NUMA node it is in.
Trait Implementations§
impl Eq for Core
impl StructuralPartialEq for Core
Auto Trait Implementations§
impl Forget for Core
impl Freeze for Core
impl Move for Core
impl RefUnwindSafe for Core
impl Send for Core
impl Sync for Core
impl Unpin for Core
impl UnsafeUnpin for Core
impl UnwindSafe for Core
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