Skip to main content

NonvolatileStorageClient

Trait NonvolatileStorageClient 

Source
pub trait NonvolatileStorageClient {
    // Required methods
    fn read_done(&self, buffer: &'static mut [u8], length: usize);
    fn write_done(&self, buffer: &'static mut [u8], length: usize);
}
Expand description

Client interface for nonvolatile storage.

Required Methods§

Source

fn read_done(&self, buffer: &'static 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.

Source

fn write_done(&self, buffer: &'static 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'b, C: Chip + 'static, D: ProcessStandardDebug + 'static, F: NonvolatileStorage<'b>> NonvolatileStorageClient for SequentialDynamicBinaryStorage<'_, 'b, C, D, F>

This is the callback client for the underlying physical storage driver.