pub trait RealTime {
// Required methods
fn start(&mut self, period: Duration) -> Result<()>;
fn stop(&mut self) -> Result<()>;
fn wait_period(&mut self) -> Result<()>;
}Required Methods§
Sourcefn wait_period(&mut self) -> Result<()>
fn wait_period(&mut self) -> Result<()>
Delay the current task until the next periodic release point is reached.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".