Trait rosrust::api::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§