Crate aparato[−][src]
Expand description
Welcome!
aparato is a library that can provide you with information about one or all your connected PCI devices.
Example:
A quick example to get started is to run the following chunk of code:
use aparato::{Device, PCIDevice}; fn main() { let device = PCIDevice::new("00:02.0"); println!("{:?}", device); }
Information about 02:00.0
should be printed to the screen.
There’s always a chance that the address you provided to [PCIDevice::new()
] could be non-existant, which will result
in an empty object being returned.
We can complete avoid this behavior by letting Fetch
handle everything for you. It’ll traverse the filesystem to
to get only the correct and available PCI devices, and will return their information as well.
Traits
A trait that provides the necessary methods which can initialize a single PCIDevice and fetch its information.
A trait that provides a set of methods which can fetch the information of multiple PCI devices all at once.