#[repr(C)]pub struct cpuinfo_package {
pub name: [c_char; 48],
pub processor_start: u32,
pub processor_count: u32,
pub core_start: u32,
pub core_count: u32,
pub cluster_start: u32,
pub cluster_count: u32,
}
Fields§
§name: [c_char; 48]
SoC or processor chip model name
processor_start: u32
Index of the first logical processor on this physical package
processor_count: u32
Number of logical processors on this physical package
core_start: u32
Index of the first core on this physical package
core_count: u32
Number of cores on this physical package
cluster_start: u32
Index of the first cluster of cores on this physical package
cluster_count: u32
Number of clusters of cores on this physical package
Trait Implementations§
Source§impl Clone for cpuinfo_package
impl Clone for cpuinfo_package
Source§fn clone(&self) -> cpuinfo_package
fn clone(&self) -> cpuinfo_package
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 cpuinfo_package
impl Debug for cpuinfo_package
impl Copy for cpuinfo_package
Auto Trait Implementations§
impl Freeze for cpuinfo_package
impl RefUnwindSafe for cpuinfo_package
impl Send for cpuinfo_package
impl Sync for cpuinfo_package
impl Unpin for cpuinfo_package
impl UnwindSafe for cpuinfo_package
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