[][src]Trait kernel::hil::nonvolatile_storage::NonvolatileStorageClient

pub trait NonvolatileStorageClient<'a> {
    fn read_done(&self, buffer: &'a mut [u8], length: usize);
fn write_done(&self, buffer: &'a mut [u8], length: usize); }

Client interface for nonvolatile storage.

Required methods

fn read_done(&self, buffer: &'a mut [u8], length: usize)

read_done is called when the implementor is finished reading in to the buffer. The callback returns the buffer and the number of bytes that were actually read.

fn write_done(&self, buffer: &'a mut [u8], length: usize)

write_done is called when the implementor is finished writing from the buffer. The callback returns the buffer and the number of bytes that were actually written.

Loading content...

Implementors

Loading content...