[][src]Trait kernel::hil::log::LogWriteClient

pub trait LogWriteClient {
    fn append_done(
        &self,
        buffer: &'static mut [u8],
        length: usize,
        records_lost: bool,
        error: ReturnCode
    );
fn sync_done(&self, error: ReturnCode);
fn erase_done(&self, error: ReturnCode); }

Receive callbacks from LogWrite.

Required methods

fn append_done(
    &self,
    buffer: &'static mut [u8],
    length: usize,
    records_lost: bool,
    error: ReturnCode
)

Returns the original buffer that contained the data to write, the number of bytes written, and whether any old entries in the log were lost (due to a circular log being filled up).

fn sync_done(&self, error: ReturnCode)

Returns whether or not all pages were correctly synced, making all changes persistent.

fn erase_done(&self, error: ReturnCode)

Returns whether or not all pages of the log were erased.

Loading content...

Implementors

Loading content...