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<C: AsRef<[u8]>>(
        &self,
        file: &str,
        contents: C
    ) -> Result<(), Error> { ... } }

Required methods

Provided methods

Reads the content of a file in the SysFS.

Write to a file in the SysFS.

Implementors