Trait aparato::traits::Properties[][src]

pub trait Properties {
    fn new(path: &str) -> Self;
fn path(&self) -> PathBuf;
fn address(&self) -> String;
fn class_id(&self) -> String;
fn vendor_id(&self) -> String;
fn device_id(&self) -> String;
fn numa_node(&self) -> isize;
fn class_name(&self) -> String;
fn vendor_name(&self) -> String;
fn device_name(&self) -> String;
fn enabled(&self) -> bool;
fn revision(&self) -> String; }

Required methods

This function returns a new instance of PCIDevice struct using the given path.

Examples:

use aparato::PCIDevice;
use aparato::traits::*;

// PCIDevice::new() can autocomplete the path to the PCIDevice
// if it isn't provided.

// The following statements all point to the same device.
let device_1 = PCIDevice::new("00:02.0");
let device_2 = PCIDevice::new("0000:00:02.0");
let device_3 = PCIDevice::new("/sys/bus/pci/devices/0000:00:02.0");

This function returns the PCIDevice path.

This function returns the PCIDevice address.

This function returns the PCIDevice class ID.

This function returns the PCIDevice vendor ID.

This function returns the PCIDevice device ID.

This function returns the PCIDevice NUMA node.

This function returns the PCIDevice class name.

This function returns the PCIDevice vendor name.

This function returns the PCIDevice device name.

This function returns whether the PCIDevice is enabled.

This function returns whether the PCIDevice is enabled.

Implementors