RecordReader

Trait RecordReader 

pub trait RecordReader {
    type Error;

    // Required method
    fn read_record(
        &mut self,
        address: u32,
        bytes: &mut [u8],
    ) -> Result<(), Self::Error>;
}
Expand description

Flash reader used by a journal mount and by the boot path’s walk-back scan.

Synchronous, unlike the writer and eraser: every backend this runs on reads either from a memory-mapped window or from a cached SPI read, and a mount scan issues one call per slot across two pages — making it async would put an await in that loop for no backend that needs one.

Required Associated Types§

type Error

Required Methods§

fn read_record( &mut self, address: u32, bytes: &mut [u8], ) -> Result<(), Self::Error>

Implementors§