Skip to main content

DynamicProcessUnload

Trait DynamicProcessUnload 

Source
pub trait DynamicProcessUnload {
    // Required methods
    fn unload(&self, app: ShortId) -> Result<(), ErrorCode>;
    fn set_unload_client(&self, client: &'static dyn DynamicProcessUnloadClient);
}
Expand description

This interface supports unloading processes at runtime.

Required Methods§

Source

fn unload(&self, app: ShortId) -> Result<(), ErrorCode>

Call to terminate a process with given ShortId.

Source

fn set_unload_client(&self, client: &'static dyn DynamicProcessUnloadClient)

Sets a client for the SequentialDynamicProcessUnload Object

When the client operation is done, it calls the unload_done() function.

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>> DynamicProcessUnload for SequentialDynamicBinaryStorage<'_, 'b, C, D, F>

Loading interface exposed to the app_loader capsule