[][src]Trait kubos_app::AppHandler

pub trait AppHandler {
    fn on_boot(&self, args: Vec<String>) -> Result<(), Error>;
fn on_command(&self, args: Vec<String>) -> Result<(), Error>; }

Common trait which is used to ensure handlers for all required run levels are defined

Required methods

fn on_boot(&self, args: Vec<String>) -> Result<(), Error>

Called when the application is started at system boot time

fn on_command(&self, args: Vec<String>) -> Result<(), Error>

Called when the application is started on-demand through the start_app GraphQL mutation

Loading content...

Implementors

Loading content...