Skip to main content

MicrodeContext

Trait MicrodeContext 

Source
pub trait MicrodeContext: Send + Sync {
    // Required methods
    fn request_stop(&self, request: MicrodeStopRequest);
    fn panic(&self, error: Option<MicrodeError>) -> !;
}
Expand description

Operations exposed by a application to its installed modules.

Required Methods§

Source

fn request_stop(&self, request: MicrodeStopRequest)

Requests an orderly stop and returns without waiting for lifecycle completion.

Source

fn panic(&self, error: Option<MicrodeError>) -> !

Terminates execution immediately, bypassing the orderly shutdown lifecycle.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§