kernel::dynamic_binary_storage

Trait DynamicBinaryStoreClient

Source
pub trait DynamicBinaryStoreClient {
    // Required methods
    fn setup_done(&self, result: Result<(), ErrorCode>);
    fn write_done(
        &self,
        result: Result<(), ErrorCode>,
        buffer: &'static mut [u8],
        length: usize,
    );
    fn finalize_done(&self, result: Result<(), ErrorCode>);
    fn abort_done(&self, result: Result<(), ErrorCode>);
}
Expand description

The callback for dynamic binary flashing.

Required Methods§

Source

fn setup_done(&self, result: Result<(), ErrorCode>)

Any setup work is done and we are ready to write the process binary.

Source

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

The provided app binary buffer has been stored.

Source

fn finalize_done(&self, result: Result<(), ErrorCode>)

The kernel has successfully finished finalizing the new app and is ready to move to the load() phase.

Source

fn abort_done(&self, result: Result<(), ErrorCode>)

Canceled any setup or writing operation and freed up reserved space.

Implementors§