pub struct SystemResources {
pub cpu: CpuInfo,
pub memory: MemoryInfo,
pub gpu: Option<GpuInfo>,
pub network: NetworkInfo,
pub storage: StorageInfo,
pub optimization_params: OptimizationParams,
}
Expand description
System resource information
Fields§
§cpu: CpuInfo
CPU information
memory: MemoryInfo
Memory information
gpu: Option<GpuInfo>
GPU information (if available)
network: NetworkInfo
Network information
storage: StorageInfo
Storage information
optimization_params: OptimizationParams
Optimization recommendations
Implementations§
Source§impl SystemResources
impl SystemResources
Sourcepub fn discover() -> CoreResult<Self>
pub fn discover() -> CoreResult<Self>
Discover all system resources
Sourcepub fn recommended_thread_count(&self) -> usize
pub fn recommended_thread_count(&self) -> usize
Get recommended thread count for parallel operations
Sourcepub fn recommended_chunk_size(&self) -> usize
pub fn recommended_chunk_size(&self) -> usize
Get recommended chunk size for memory operations
Sourcepub fn supports_simd(&self) -> bool
pub fn supports_simd(&self) -> bool
Check if SIMD operations are supported
Sourcepub fn supports_gpu(&self) -> bool
pub fn supports_gpu(&self) -> bool
Check if GPU acceleration is available
Sourcepub fn total_memory(&self) -> usize
pub fn total_memory(&self) -> usize
Get total available memory in bytes
Sourcepub fn available_memory(&self) -> usize
pub fn available_memory(&self) -> usize
Get available memory in bytes
Sourcepub fn performance_tier(&self) -> PerformanceTier
pub fn performance_tier(&self) -> PerformanceTier
Get performance tier classification
Sourcepub fn summary_report(&self) -> String
pub fn summary_report(&self) -> String
Generate a system summary report
Trait Implementations§
Source§impl Clone for SystemResources
impl Clone for SystemResources
Source§fn clone(&self) -> SystemResources
fn clone(&self) -> SystemResources
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 SystemResources
impl RefUnwindSafe for SystemResources
impl Send for SystemResources
impl Sync for SystemResources
impl Unpin for SystemResources
impl UnwindSafe for SystemResources
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