pub trait Delay {
// Required method
async fn delay_ms(&mut self, ms: u32);
}Expand description
Async sleep used by poll steps. std/tokio callers get an impl from
moddef-tokio-modbus; embedded callers supply their own (e.g. an
embassy timer). Elapsed poll time is accounted by accumulating the
requested delays, so no wall clock is required.
Required 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.