Trait sysfuss::SysEntity

source ·
pub trait SysEntity: AsRef<Path> {
    // Required methods
    fn to_entity_path(self) -> EntityPath;
    fn name(&self) -> IoResult<String>;

    // Provided method
    fn root(&self) -> Option<SysPath> { ... }
}
Expand description

sysfs class entity functionality

Required Methods§

source

fn to_entity_path(self) -> EntityPath

Convert specialized entity into general entity path container

source

fn name(&self) -> IoResult<String>

Get the entity’s name

Provided Methods§

source

fn root(&self) -> Option<SysPath>

Try to get the entity’s root sysfs dir (probably /)

Implementors§