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.

This function returns a list of available PCI devices of a specific class and their information.

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] becomes GeForce GTX 1650 Mobile / Max-Q
  • NVIDIA Corporation becomes NVIDIA

Implementors