Struct HardwareQueryBuilder

Source
pub struct HardwareQueryBuilder { /* private fields */ }
Expand description

Hardware query builder for selective information gathering

Implementations§

Source§

impl HardwareQueryBuilder

Source

pub fn new() -> Self

Create a new hardware query builder

Source

pub fn with_cpu(self) -> Self

Include CPU information in the query

Source

pub fn with_gpu(self) -> Self

Include GPU information in the query

Source

pub fn with_memory(self) -> Self

Include memory information in the query

Source

pub fn with_storage(self) -> Self

Include storage information in the query

Source

pub fn with_network(self) -> Self

Include network information in the query

Source

pub fn with_battery(self) -> Self

Include battery information in the query

Source

pub fn with_thermal(self) -> Self

Include thermal information in the query

Source

pub fn with_pci(self) -> Self

Include PCI device information in the query

Source

pub fn with_usb(self) -> Self

Include USB device information in the query

Source

pub fn with_virtualization(self) -> Self

Include virtualization information in the query

Source

pub fn with_power(self) -> Self

Include power management information (requires monitoring feature)

Source

pub fn with_all(self) -> Self

Include all available hardware information

Source

pub fn with_basic(self) -> Self

Include basic system information (CPU, memory, storage)

Source

pub fn with_ai_focused(self) -> Self

Include AI/ML relevant information (CPU, GPU, memory)

Source

pub fn with_gaming_focused(self) -> Self

Include gaming-relevant information (CPU, GPU, memory, thermal)

Source

pub fn with_server_focused(self) -> Self

Include server/enterprise relevant information

Source

pub fn filter_gpus<F>(self, _filter: F) -> Self
where F: Fn(&GPUInfo) -> bool + 'static,

Filter GPUs by a custom predicate

Source

pub fn filter_storage<F>(self, _filter: F) -> Self
where F: Fn(&StorageInfo) -> bool + 'static,

Filter storage devices by a custom predicate

Source

pub fn filter_network<F>(self, _filter: F) -> Self
where F: Fn(&NetworkInfo) -> bool + 'static,

Filter network interfaces by a custom predicate

Source

pub fn query(self) -> Result<CustomHardwareInfo>

Execute the query and return the requested hardware information

Source

pub fn quick_query(self) -> Result<CustomHardwareInfo>

Execute a quick query that only gathers essential information

Source§

impl HardwareQueryBuilder

Source

pub fn cpu_and_memory() -> Result<CustomHardwareInfo>

Quick CPU and memory information

Source

pub fn gpu_info() -> Result<CustomHardwareInfo>

Quick GPU information for AI/gaming

Source

pub fn health_check() -> Result<CustomHardwareInfo>

System health overview

Source

pub fn performance_check() -> Result<CustomHardwareInfo>

Performance overview for gaming/AI

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.