kernel::hil::log

Trait 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§