A loop that puts you into a deeper sleep that you can be woken up by interrupts from DMA, timers, GPIO etc. would provide the same.
I like Rust as much as the next guy but let's not pretend we couldn't do this with C, C++ or assembly.
I like Rust as much as the next guy but let's not pretend we couldn't do this with C, C++ or assembly.