ServiceThread

Trait ServiceThread 

Source
pub trait ServiceThread {
    // Required methods
    fn start(&mut self);
    fn shutdown(&mut self);
    fn make_stop(&mut self);
    fn wakeup(&mut self);
    fn wait_for_running(&mut self, interval: i64);
    fn is_stopped(&self) -> bool;
    fn get_service_name(&self) -> String;
}

Required Methods§

Source

fn start(&mut self)

Source

fn shutdown(&mut self)

Source

fn make_stop(&mut self)

Source

fn wakeup(&mut self)

Source

fn wait_for_running(&mut self, interval: i64)

Source

fn is_stopped(&self) -> bool

Source

fn get_service_name(&self) -> String

Implementors§