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§

source

fn capable<C: Capabilities<A, A>>(&self, capabilities: C) -> bool

Returns true if self is capable of the provided capabilities

source

fn attribute<T: FromStr<Err = E>, E>( &self, attr: A ) -> Result<T, EitherErr2<Error, E>>

Get an attribute on the entity

source

fn set<V: ToString>(&self, attr: A, value: V) -> IoResult<()>

Set an attribute on the entity

Implementors§