pub struct ThreadDelay;Expand description
Empty struct that implements the DelayNs trait using std::thread::sleep
Trait Implementations§
Source§impl DelayNs for ThreadDelay
DelayNs trait from embedded_hal implemented using sleep.
The thread may sleep longer than the duration specified due to
scheduling specifics or platform-dependent functionality.
It will never sleep less.
impl DelayNs for ThreadDelay
DelayNs trait from embedded_hal implemented using sleep.
The thread may sleep longer than the duration specified due to
scheduling specifics or platform-dependent functionality.
It will never sleep less.
This function is blocking, and should not be used in async functions.
Auto Trait Implementations§
impl Freeze for ThreadDelay
impl RefUnwindSafe for ThreadDelay
impl Send for ThreadDelay
impl Sync for ThreadDelay
impl Unpin for ThreadDelay
impl UnsafeUnpin for ThreadDelay
impl UnwindSafe for ThreadDelay
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