pub trait VfsFile {
// Required methods
fn read(&self, buf: &mut [u8], offset: usize) -> Result<bool, VfsError>;
fn write(&mut self, buf: &[u8], offset: usize) -> Result<(), VfsError>;
fn truncate(&mut self, size: usize) -> Result<(), VfsError>;
fn flush(&mut self) -> Result<(), VfsError>;
fn size(&self) -> Result<usize, VfsError>;
}Expand description
A trait defining the basic I/O capabilities required for a VFS file implementation.