Trait VmbfsIo

Source
pub trait VmbfsIo: Send + InspectMut {
    // Required methods
    fn file_info(&mut self, path: &str) -> Result<FileInfo, FileError>;
    fn read_file(
        &mut self,
        path: &str,
        offset: u64,
        buf: &mut [u8],
    ) -> Result<(), FileError>;
}
Expand description

The backing store for the vmbus file system.

Required Methods§

Source

fn file_info(&mut self, path: &str) -> Result<FileInfo, FileError>

Returns information about a file or directory.

Source

fn read_file( &mut self, path: &str, offset: u64, buf: &mut [u8], ) -> Result<(), FileError>

Reads the contents of a file.

Implementors§