pub trait SysAttributeExt: SysAttribute + Eq {
    // Provided methods
    fn read_str(&self, entity: &dyn SysEntity) -> IoResult<String> { ... }
    fn write_str(&self, entity: &dyn SysEntity, s: &str) -> IoResult<()> { ... }
    fn parse<T: FromStr<Err = E>, E>(
        &self,
        entity: &dyn SysEntity
    ) -> Result<T, EitherErr2<Error, E>> { ... }
}
Expand description

sysfs entity attribute functionality extension

Provided Methods§

source

fn read_str(&self, entity: &dyn SysEntity) -> IoResult<String>

read attribute as string

source

fn write_str(&self, entity: &dyn SysEntity, s: &str) -> IoResult<()>

write attribute string value to sysfsfilter_map

source

fn parse<T: FromStr<Err = E>, E>( &self, entity: &dyn SysEntity ) -> Result<T, EitherErr2<Error, E>>

read and parse the attribute value

Implementors§