pub struct StdSleep;Available on crate feature
eh1 only.Expand description
A Delay implementation that uses std::thread::sleep.
Implementations§
Trait Implementations§
Source§impl DelayNs for StdSleep
impl DelayNs for StdSleep
Source§fn delay_ns(&mut self, ns: u32)
fn delay_ns(&mut self, ns: u32)
Pauses execution for at minimum
ns nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Source§impl DelayNs for StdSleep
Available on crate feature embedded-hal-async only.
impl DelayNs for StdSleep
Available on crate feature
embedded-hal-async only.Source§async fn delay_ns(&mut self, ns: u32)
async fn delay_ns(&mut self, ns: u32)
Pauses execution for at minimum
ns nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Auto Trait Implementations§
impl Freeze for StdSleep
impl RefUnwindSafe for StdSleep
impl Send for StdSleep
impl Sync for StdSleep
impl Unpin for StdSleep
impl UnwindSafe for StdSleep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more