pub trait SysEntityAttributes<A: SysAttribute + Eq>: SysEntity + Sized {
    // Required method
    fn capabilities(&self) -> Vec<A>;

    // Provided methods
    fn read_value(&self, attr: A) -> IoResult<Vec<u8>> { ... }
    fn write_value(&self, attr: A, value: &[u8]) -> IoResult<()> { ... }
}
Expand description

sysfs class entity attribute type indicator

Required Methods§

source

fn capabilities(&self) -> Vec<A>

Get attributes available on this entity;

Provided Methods§

source

fn read_value(&self, attr: A) -> IoResult<Vec<u8>>

Read entity attribute value

source

fn write_value(&self, attr: A, value: &[u8]) -> IoResult<()>

Write entity attribute value

Implementors§