Trait amdgpu_sysfs::sysfs::SysFS
source · [−]pub trait SysFS {
fn get_path(&self) -> &Path;
fn read_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn write_file<'life0, 'life1, 'async_trait, C>(
&'life0 self,
file: &'life1 str,
contents: C
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
C: 'async_trait + AsRef<[u8]> + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}
Required Methods
Provided Methods
Reads the content of a file in the SysFS.
Write to a file in the SysFS.