pub struct HwMonPath { /* private fields */ }Expand description
hwmon
Implementations§
source§impl HwMonPath
impl HwMonPath
sourcepub fn attribute_str(&self, name: &str) -> IoResult<String>
pub fn attribute_str(&self, name: &str) -> IoResult<String>
Get a hwmon attribute (file contents) by attribute filename. It is recommended to use HwMon.attribute unless the attribute has a non-standard name
sourcepub fn path_to(&self, attr: HwMonAttribute) -> PathBuf
pub fn path_to(&self, attr: HwMonAttribute) -> PathBuf
Get the path to a hwmon attribute.
Use HwMonPath.as_ref().join(attribute_str) for non-standard attributes
Trait Implementations§
source§impl SysEntityAttributes<HwMonAttribute> for HwMonPath
impl SysEntityAttributes<HwMonAttribute> for HwMonPath
source§fn capabilities(&self) -> Vec<HwMonAttribute>
fn capabilities(&self) -> Vec<HwMonAttribute>
Get attributes available on this entity;
Auto Trait Implementations§
impl RefUnwindSafe for HwMonPath
impl Send for HwMonPath
impl Sync for HwMonPath
impl Unpin for HwMonPath
impl UnwindSafe for HwMonPath
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
source§impl<A, X> SysEntityAttributesExt<A> for Xwhere
A: SysAttribute + Eq,
X: SysEntityAttributes<A>,
impl<A, X> SysEntityAttributesExt<A> for Xwhere A: SysAttribute + Eq, X: SysEntityAttributes<A>,
source§impl<X> SysEntityRawExt for Xwhere
X: SysEntity,
impl<X> SysEntityRawExt for Xwhere X: SysEntity,
source§fn attribute<A, T, E>(&self, attr: A) -> Result<T, EitherErr2<Error, E>>where
A: SysAttribute + Eq,
T: FromStr<Err = E>,
fn attribute<A, T, E>(&self, attr: A) -> Result<T, EitherErr2<Error, E>>where A: SysAttribute + Eq, T: FromStr<Err = E>,
Get an attribute on the entity
source§fn attribute_str<A>(&self, attr: A) -> Result<String, Error>where
A: AsRef<Path>,
fn attribute_str<A>(&self, attr: A) -> Result<String, Error>where A: AsRef<Path>,
Get an attribute by filename in the entity’s directory
source§fn exists_str<A>(&self, attr: A) -> boolwhere
A: AsRef<Path>,
fn exists_str<A>(&self, attr: A) -> boolwhere A: AsRef<Path>,
Returns true when the entity has the attribute
source§fn exists<A>(&self, attr: A) -> boolwhere
A: SysAttribute,
fn exists<A>(&self, attr: A) -> boolwhere A: SysAttribute,
Returns true when the entity has the attribute