Trait sysfuss::SysEntityAttributesExt
source · pub trait SysEntityAttributesExt<A: SysAttribute + Eq>: SysEntityAttributes<A> {
// Provided methods
fn capable<C: Capabilities<A, A>>(&self, capabilities: C) -> bool { ... }
fn attribute<T: FromStr<Err = E>, E>(
&self,
attr: A
) -> Result<T, EitherErr2<Error, E>> { ... }
fn set<V: ToString>(&self, attr: A, value: V) -> IoResult<()> { ... }
}Expand description
sysfs class entity attribute type extension
Provided Methods§
sourcefn capable<C: Capabilities<A, A>>(&self, capabilities: C) -> bool
fn capable<C: Capabilities<A, A>>(&self, capabilities: C) -> bool
Returns true if self is capable of the provided capabilities