Api

Trait Api 

Source
pub trait Api: Send {
    // Required method
    fn uptime_us() -> Result<u64, Error>;
}
Available on crate feature api-clock only.
Expand description

Clock interface.

Required Methods§

Source

fn uptime_us() -> Result<u64, Error>

Returns the time spent since some initial event, in micro-seconds.

The initial event may be the first time this function is called.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§