rosrust::api

Trait Clock

Source
pub trait Clock: Send + Sync {
    // Required methods
    fn now(&self) -> Time;
    fn sleep(&self, d: Duration);
    fn wait_until(&self, t: Time);

    // Provided method
    fn await_init(&self) { ... }
}

Required Methods§

Source

fn now(&self) -> Time

Source

fn sleep(&self, d: Duration)

Source

fn wait_until(&self, t: Time)

Provided Methods§

Implementors§