[][src]Trait new_home_application::application::application_framework::BootApplication

pub trait BootApplication {
    fn boot(&mut self) -> Result<(), AppError>;
fn run(&self) -> Result<(), AppError>;
fn multi_run(self, thread_count: i32) -> Result<(), AppError>; }

Used to boot the Application Should only be used once

Required methods

fn boot(&mut self) -> Result<(), AppError>

Prepares the Application to be run The boot method should only be callable once, a second call should result in an error

fn run(&self) -> Result<(), AppError>

The run method will make use of the objects created in the boot process It can be run in multiple threads to handle multiple clients at the same time

fn multi_run(self, thread_count: i32) -> Result<(), AppError>

Calls the run method in multiple threads. Count of threads can be given with the thread_count argument

Loading content...

Implementors

impl BootApplication for Application[src]

Loading content...