Struct sysfs_class::HwMon
source · pub struct HwMon { /* private fields */ }
Expand description
A hardware monitoring device in /sys/class/hwmon
Implementations
Trait Implementations
sourceimpl SysClass for HwMon
impl SysClass for HwMon
sourcefn class() -> &'static str
fn class() -> &'static str
Return the class of the sys object, the name of a folder in /sys/class
sourceunsafe fn from_path_unchecked(path: PathBuf) -> Self
unsafe fn from_path_unchecked(path: PathBuf) -> Self
Create a sys object from an absolute path without checking path for validity
sourcefn dir() -> PathBuf
fn dir() -> PathBuf
Return the path to the sys objects, the full path of a folder in /sys/class
sourcefn from_path(path: &Path) -> Result<Self>
fn from_path(path: &Path) -> Result<Self>
Create a sys object from a path, checking it for validity
sourcefn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
fn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
Read a file underneath the sys object
sourcefn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F>where
F::Err: Display,
fn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F>where
F::Err: Display,
Parse a number from a file underneath the sys object
Auto Trait Implementations
impl RefUnwindSafe for HwMon
impl Send for HwMon
impl Sync for HwMon
impl Unpin for HwMon
impl UnwindSafe for HwMon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more