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 Freeze for PowerSupplyPath
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,
X: SysEntityAttributes<A>,
impl<A, X> SysEntityAttributesExt<A> for Xwhere
A: SysAttribute,
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,
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