pub trait Callbacks {
// Required methods
fn before_poll(&mut self);
fn on_idle(&mut self);
}Available on crate feature
embassy only.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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".