pub enum EntityPath {
HwMon(HwMonPath),
PowerSupply(PowerSupplyPath),
Generic(BasicEntityPath),
Custom(Arc<Box<dyn SysEntity>>),
}Expand description
sysfs class entity implementors
Variants§
HwMon(HwMonPath)
hwmon
PowerSupply(PowerSupplyPath)
power_supply
Generic(BasicEntityPath)
Generic
Custom(Arc<Box<dyn SysEntity>>)
Miscellaneous
Trait Implementations§
Source§impl AsRef<Path> for EntityPath
impl AsRef<Path> for EntityPath
Auto Trait Implementations§
impl Freeze for EntityPath
impl !RefUnwindSafe for EntityPath
impl !Send for EntityPath
impl !Sync for EntityPath
impl Unpin for EntityPath
impl !UnwindSafe for EntityPath
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<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,
T: FromStr<Err = E>,
fn attribute<A, T, E>(&self, attr: A) -> Result<T, EitherErr2<Error, E>>where
A: SysAttribute,
T: FromStr<Err = E>,
Get an attribute on the entity
Source§fn attribute_str<A>(&self, attr: A) -> Result<String, Error>
fn attribute_str<A>(&self, attr: A) -> Result<String, Error>
Get an attribute by filename in the entity’s directory
Source§fn exists_str<A>(&self, attr: A) -> bool
fn exists_str<A>(&self, attr: A) -> bool
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