[−][src]Struct sysfs_class::PciDevice
Methods
impl PciDevice
[src]
pub fn class(&self) -> Result<u32>
[src]
pub fn device(&self) -> Result<u16>
[src]
pub fn revision(&self) -> Result<u8>
[src]
pub fn subsystem_device(&self) -> Result<u16>
[src]
pub fn subsystem_vendor(&self) -> Result<u16>
[src]
pub fn vendor(&self) -> Result<u16>
[src]
pub fn driver(&self) -> Result<PciDriver>
[src]
pub unsafe fn remove(&self) -> Result<()>
[src]
Trait Implementations
impl Clone for PciDevice
[src]
impl RuntimePM for PciDevice
[src]
fn set_runtime_pm(&self, state: RuntimePowerManagement) -> Result<()>
[src]
impl SysClass for PciDevice
[src]
fn base() -> &'static str
[src]
fn class() -> &'static str
[src]
unsafe fn from_path_unchecked(path: PathBuf) -> Self
[src]
fn path(&self) -> &Path
[src]
fn dir() -> PathBuf
[src]
fn from_path(path: &Path) -> Result<Self>
[src]
fn all() -> Result<Vec<Self>>
[src]
fn iter() -> Box<dyn Iterator<Item = Result<Self>>> where
Self: 'static,
[src]
Self: 'static,
fn new(id: &str) -> Result<Self>
[src]
fn id(&self) -> &str
[src]
fn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
[src]
fn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F> where
F::Err: Display,
[src]
F::Err: Display,
fn trim_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
[src]
fn write_file<P: AsRef<Path>, S: AsRef<[u8]>>(
&self,
name: P,
data: S
) -> Result<()>
[src]
&self,
name: P,
data: S
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for PciDevice
impl Send for PciDevice
impl Sync for PciDevice
impl Unpin for PciDevice
impl UnwindSafe for PciDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,