pub trait Disk {
// Required methods
fn read(&self, sector: Sector, buf: &mut [u8; 512]) -> Result<(), Error>;
fn write(&self, sector: Sector, buf: &[u8; 512]) -> Result<(), Error>;
}
Expand description
A device that has byte sink.
pub trait Disk {
// Required methods
fn read(&self, sector: Sector, buf: &mut [u8; 512]) -> Result<(), Error>;
fn write(&self, sector: Sector, buf: &[u8; 512]) -> Result<(), Error>;
}
A device that has byte sink.