Trait kubos_app::AppHandler [−][src]
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