Skip to main content

RealTime

Trait RealTime 

Source
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§

Source

fn start(&mut self, period: Duration) -> Result<()>

Start a periodic real-time task.

Source

fn stop(&mut self) -> Result<()>

Stop a periodic real-time task.

Source

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".

Implementors§