pub struct SysFs {}
Expand description
Builds up Rust struct based on what kind of SysFs type.
See SysFsType
for supported types.
Implementations§
Source§impl SysFs
impl SysFs
Sourcepub fn usb_devices() -> Result<UsbDevices, Error>
pub fn usb_devices() -> Result<UsbDevices, Error>
Get all USB devices found on system.
Sourcepub fn pci_devices() -> Result<PciDevices, Error>
pub fn pci_devices() -> Result<PciDevices, Error>
Get all PCI devices found on system.
Sourcepub fn thermal_info() -> Result<ThermalInfo, Error>
pub fn thermal_info() -> Result<ThermalInfo, Error>
Get all thermal devices on the system.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SysFs
impl RefUnwindSafe for SysFs
impl Send for SysFs
impl Sync for SysFs
impl Unpin for SysFs
impl UnwindSafe for SysFs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more