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§
Sourcefn unload(&self, app: ShortId) -> Result<(), ErrorCode>
fn unload(&self, app: ShortId) -> Result<(), ErrorCode>
Call to terminate a process with given ShortId.
Sourcefn set_unload_client(&self, client: &'static dyn DynamicProcessUnloadClient)
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§
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