pub trait Client<F: Flash> {
fn read_complete(&self, read_buffer: &'static mut F::Page, error: Error);
fn write_complete(&self, write_buffer: &'static mut F::Page, error: Error);
fn erase_complete(&self, error: Error);
}
Expand description
Implement Client
to receive callbacks from Flash
.
Required Methods
fn read_complete(&self, read_buffer: &'static mut F::Page, error: Error)
fn read_complete(&self, read_buffer: &'static mut F::Page, error: Error)
Flash read complete.
fn write_complete(&self, write_buffer: &'static mut F::Page, error: Error)
fn write_complete(&self, write_buffer: &'static mut F::Page, error: Error)
Flash write complete.
fn erase_complete(&self, error: Error)
fn erase_complete(&self, error: Error)
Flash erase complete.