pub struct HardwareCaps {
pub physical_cores: usize,
pub logical_cores: usize,
pub has_avx2: bool,
pub has_avx512: bool,
pub has_neon: bool,
pub gpu_available: bool,
pub gpu_name: Option<String>,
pub gpu_vram_mb: Option<u64>,
pub gpu_is_software: bool,
pub total_memory_mb: Option<u64>,
pub io_uring_available: bool,
pub hyperscan_available: bool,
}Expand description
Hardware capabilities detected at startup.
Fields§
§physical_cores: usize§logical_cores: usize§has_avx2: bool§has_avx512: bool§has_neon: bool§gpu_available: bool§gpu_name: Option<String>§gpu_vram_mb: Option<u64>§gpu_is_software: boolTrue when the GPU is a software renderer (llvmpipe/lavapipe) - always slower than CPU.
total_memory_mb: Option<u64>§io_uring_available: bool§hyperscan_available: boolTrue when the simd feature is compiled in AND Hyperscan initialized.
Trait Implementations§
Source§impl Clone for HardwareCaps
impl Clone for HardwareCaps
Source§fn clone(&self) -> HardwareCaps
fn clone(&self) -> HardwareCaps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HardwareCaps
impl RefUnwindSafe for HardwareCaps
impl Send for HardwareCaps
impl Sync for HardwareCaps
impl Unpin for HardwareCaps
impl UnsafeUnpin for HardwareCaps
impl UnwindSafe for HardwareCaps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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