Trait amdgpu_sysfs::sysfs::SysFS[][src]

pub trait SysFS {
    fn get_path(&self) -> &Path;

    fn read_file(&self, file: &str) -> Option<String> { ... }
fn write_file(&self, file: &str, contents: &str) -> Result<(), Error> { ... } }

Required methods

Provided methods

Reads the content of a file in the SysFS.

Write to a file in the SysFS.

Implementors