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§
Sourcefn setup_done(&self, result: Result<(), ErrorCode>)
fn setup_done(&self, result: Result<(), ErrorCode>)
Any setup work is done and we are ready to write the process binary.
Sourcefn write_done(
&self,
result: Result<(), ErrorCode>,
buffer: &'static mut [u8],
length: usize,
)
fn write_done( &self, result: Result<(), ErrorCode>, buffer: &'static mut [u8], length: usize, )
The provided app binary buffer has been stored.
Sourcefn finalize_done(&self, result: Result<(), ErrorCode>)
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.
Sourcefn abort_done(&self, result: Result<(), ErrorCode>)
fn abort_done(&self, result: Result<(), ErrorCode>)
Canceled any setup or writing operation and freed up reserved space.