pub struct Delay<'a, CLOCK: Clock> { /* private fields */ }Expand description
An instance of a delay tied to a specific Clock.
Implementations§
Trait Implementations§
Source§impl<'a, CLOCK: Clock> DelayNs for Delay<'a, CLOCK>
impl<'a, CLOCK: Clock> DelayNs for Delay<'a, CLOCK>
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.Auto Trait Implementations§
impl<'a, CLOCK> Freeze for Delay<'a, CLOCK>
impl<'a, CLOCK> RefUnwindSafe for Delay<'a, CLOCK>where
CLOCK: RefUnwindSafe,
impl<'a, CLOCK> Send for Delay<'a, CLOCK>where
CLOCK: Sync,
impl<'a, CLOCK> Sync for Delay<'a, CLOCK>where
CLOCK: Sync,
impl<'a, CLOCK> Unpin for Delay<'a, CLOCK>
impl<'a, CLOCK> UnwindSafe for Delay<'a, CLOCK>where
CLOCK: RefUnwindSafe,
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