Struct qdb::Application
source · pub struct Application { /* private fields */ }Implementations§
source§impl Application
impl Application
pub fn new(ctx: ApplicationContext, loop_interval_ms: u64) -> Self
source§impl Application
impl Application
pub fn add_worker(&mut self, worker: Box<dyn WorkerTrait>)
Trait Implementations§
source§impl ApplicationTrait for Application
impl ApplicationTrait for Application
source§impl WorkerTrait for Application
impl WorkerTrait for Application
fn intialize(&mut self, ctx: ApplicationContext) -> Result<()>
fn do_work(&mut self, ctx: ApplicationContext) -> Result<()>
fn deinitialize(&mut self, ctx: ApplicationContext) -> Result<()>
fn process_events(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Application
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more