pub struct HardwareInfo {
pub cpu_cores: usize,
pub cpu_threads: usize,
pub cpu_model: String,
pub l1_cache_size: usize,
pub l2_cache_size: usize,
pub l3_cache_size: usize,
pub memory_size: usize,
pub simd_features: Vec<SimdFeature>,
pub memory_bandwidth: Option<f64>,
pub gpu_info: Option<GpuInfo>,
}Expand description
Hardware characteristics detected at runtime
Fields§
§cpu_cores: usizeNumber of physical CPU cores
cpu_threads: usizeNumber of logical CPU threads
cpu_model: StringCPU brand and model
l1_cache_size: usizeL1 cache size per core (bytes)
l2_cache_size: usizeL2 cache size per core (bytes)
l3_cache_size: usizeL3 cache size total (bytes)
memory_size: usizeMemory size (bytes)
simd_features: Vec<SimdFeature>Available SIMD instruction sets
memory_bandwidth: Option<f64>Estimated memory bandwidth (bytes/second)
gpu_info: Option<GpuInfo>GPU information
Trait Implementations§
Source§impl Clone for HardwareInfo
impl Clone for HardwareInfo
Source§fn clone(&self) -> HardwareInfo
fn clone(&self) -> HardwareInfo
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 moreAuto Trait Implementations§
impl Freeze for HardwareInfo
impl RefUnwindSafe for HardwareInfo
impl Send for HardwareInfo
impl Sync for HardwareInfo
impl Unpin for HardwareInfo
impl UnwindSafe for HardwareInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more