Trait rcore_fs::dev::BlockDevice[][src]

pub trait BlockDevice: Send + Sync {
    const BLOCK_SIZE_LOG2: u8;

    fn read_at(&self, block_id: BlockId, buf: &mut [u8]) -> Result<()>;
fn write_at(&self, block_id: BlockId, buf: &[u8]) -> Result<()>;
fn sync(&self) -> Result<()>; }

Device which can only R/W in blocks

Associated Constants

const BLOCK_SIZE_LOG2: u8[src]

Loading content...

Required methods

fn read_at(&self, block_id: BlockId, buf: &mut [u8]) -> Result<()>[src]

fn write_at(&self, block_id: BlockId, buf: &[u8]) -> Result<()>[src]

fn sync(&self) -> Result<()>[src]

Loading content...

Implementors

impl<T: BlockDevice> BlockDevice for BlockCache<T>[src]

Loading content...