Enum sysfuss::EntityPath
source · 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 !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 + 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