block_device 0.1.3

BlockDevice trait
Documentation
  • Coverage
  • 33.33%
    2 out of 6 items documented1 out of 4 items with examples
  • Size
  • Source code size: 3.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 514.63 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Spxg/block_device
    0 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Spxg

BlockDevice trait

pub trait BlockDevice {
    const BLOCK_SIZE: u32 = 512;
    
    type Error;
    fn read(&self, buf: &mut [u8], address: usize, number_of_blocks: usize) -> Result<(), Self::Error>;
    fn write(&self, buf: &[u8], address: usize, number_of_blocks: usize) -> Result<(), Self::Error>;
}