Trait kernel::hil::log::LogReadClient

source ·
pub trait LogReadClient {
    // Required methods
    fn read_done(
        &self,
        buffer: &'static mut [u8],
        length: usize,
        error: Result<(), ErrorCode>,
    );
    fn seek_done(&self, error: Result<(), ErrorCode>);
}
Expand description

Receive callbacks from LogRead.

Required Methods§

source

fn read_done( &self, buffer: &'static mut [u8], length: usize, error: Result<(), ErrorCode>, )

Returns a buffer containing data read and the length of the number of bytes read or an error code if the read failed.

source

fn seek_done(&self, error: Result<(), ErrorCode>)

Returns whether the seek succeeded or failed.

Implementors§