Module embedded_hal_mock::eh1::delay
source · Available on crate feature
eh1
only.Expand description
Delay mock implementations.
Usage
If the actual sleep duration is not important, simply create a
NoopDelay
instance. There will be no actual
delay. This is useful for fast tests, where you don’t actually need to wait
for the hardware.
If you do want the real delay behavior, use
StdSleep
which uses
std::thread::sleep
to implement the delay.
Structs
- A
Delay
implementation that does not actually block. - A
Delay
implementation that usesstd::thread::sleep
.