qdb 0.1.10

Library for interacting with QDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::framework::application::Context;
use crate::Result;

pub trait WorkerTrait {
    fn intialize(&mut self, ctx: Context) -> Result<()>;
    fn do_work(&mut self, ctx: Context) -> Result<()>;
    fn deinitialize(&mut self, ctx: Context) -> Result<()>;
    fn process_events(&mut self) -> Result<()>;

    fn name(&self) -> &'static str {
        std::any::type_name::<Self>()
    }
}