pub struct FileIO { /* private fields */ }Implementations§
Trait Implementations§
source§impl IO for FileIO
impl IO for FileIO
type Error = Error
fn read<'a>(
&'a mut self,
sector: SectorID
) -> Result<&'a [[u8; 512]], Self::Error>
source§fn write(
&mut self,
sector: SectorID,
offset: usize,
buf: &[u8]
) -> Result<(), Self::Error>
fn write(
&mut self,
sector: SectorID,
offset: usize,
buf: &[u8]
) -> Result<(), Self::Error>
Caller guarantees bytes.len() <= SECTOR_SIZE - offset