pub trait DelayNs {
// Required method
async fn delay_ns(&mut self, ns: u32);
// Provided methods
async fn delay_us(&mut self, us: u32) { ... }
async fn delay_ms(&mut self, ms: u32) { ... }
}
Expand description
Delay with up to nanosecond precision.
Required Methods§
Provided Methods§
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.