Trait aparato::traits::Fetch [−][src]
pub trait Fetch { fn fetch() -> Vec<PCIDevice>; fn fetch_by_class(class: DeviceClass) -> Vec<PCIDevice>; fn fetch_gpus() -> Vec<PCIDevice>; }
Required methods
This function returns a list of available PCI devices and their information.
fn fetch_by_class(class: DeviceClass) -> Vec<PCIDevice>
fn fetch_by_class(class: DeviceClass) -> Vec<PCIDevice>
This function returns a list of available PCI devices of a specific class and their information.
fn fetch_gpus() -> Vec<PCIDevice>
fn fetch_gpus() -> Vec<PCIDevice>
This function returns a list of available GPUs and their information.
This essentially wraps fetch_by_class(DeviceClass::DisplayController)
but masks unnecessary data from device and vendor names, for example:
TU117M [GeForce GTX 1650 Mobile / Max-Q]
becomesGeForce GTX 1650 Mobile / Max-Q
NVIDIA Corporation
becomesNVIDIA