Struct sysfuss::PowerSupplyPath
source · pub struct PowerSupplyPath { /* private fields */ }Expand description
power_supply/
Implementations§
source§impl PowerSupplyPath
impl PowerSupplyPath
sourcepub fn type_enum(
&self
) -> Result<PowerSupplyType, EitherErr2<Error, <PowerSupplyType as FromStr>::Err>>
pub fn type_enum( &self ) -> Result<PowerSupplyType, EitherErr2<Error, <PowerSupplyType as FromStr>::Err>>
Get the power supply type
Trait Implementations§
source§impl AsRef<Path> for PowerSupplyPath
impl AsRef<Path> for PowerSupplyPath
source§impl SysEntity for PowerSupplyPath
impl SysEntity for PowerSupplyPath
source§impl SysEntityAttributes<PowerSupplyAttribute> for PowerSupplyPath
impl SysEntityAttributes<PowerSupplyAttribute> for PowerSupplyPath
source§fn capabilities(&self) -> Vec<PowerSupplyAttribute>
fn capabilities(&self) -> Vec<PowerSupplyAttribute>
Get attributes available on this entity;
Auto Trait Implementations§
impl RefUnwindSafe for PowerSupplyPath
impl Send for PowerSupplyPath
impl Sync for PowerSupplyPath
impl Unpin for PowerSupplyPath
impl UnwindSafe for PowerSupplyPath
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