pub trait Callbacks {
// Required methods
fn before_poll(&mut self);
fn on_idle(&mut self);
}
Expand description
Callbacks to run code before/after polling the task queue.
Required Methods§
Sourcefn before_poll(&mut self)
fn before_poll(&mut self)
Called just before polling the executor.