Struct embassy_time::Delay
source ยท pub struct Delay;
Expand description
Type implementing async delays and blocking embedded-hal
delays.
The delays are implemented in a โbest-effortโ way, meaning that the cpu will block for at least the amount provided, but accuracy can be affected by many factors, including interrupt usage. Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently active driver.
Trait Implementationsยง
sourceยงimpl DelayNs for Delay
impl DelayNs for Delay
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 Delay
impl DelayNs for Delay
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 Delay
impl RefUnwindSafe for Delay
impl Send for Delay
impl Sync for Delay
impl Unpin for Delay
impl UnwindSafe for Delay
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)