pub struct TimerFuture<T>where
T: AsyncCount16,{ /* private fields */ }
Expand description
Wrapper around a TimerCounter
with an async
interface
Implementations§
Source§impl<T> TimerFuture<T>where
T: AsyncCount16,
impl<T> TimerFuture<T>where
T: AsyncCount16,
Sourcepub async fn delay(&mut self, count: NanosDurationU32)
pub async fn delay(&mut self, count: NanosDurationU32)
Delay asynchronously
Trait Implementations§
Source§impl<T> DelayNs for TimerFuture<T>where
T: AsyncCount16,
impl<T> DelayNs for TimerFuture<T>where
T: AsyncCount16,
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.Source§impl<T> Drop for TimerFuture<T>where
T: AsyncCount16,
impl<T> Drop for TimerFuture<T>where
T: AsyncCount16,
Auto Trait Implementations§
impl<T> Freeze for TimerFuture<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimerFuture<T>where
T: RefUnwindSafe,
impl<T> Send for TimerFuture<T>where
T: Send,
impl<T> Sync for TimerFuture<T>where
T: Sync,
impl<T> Unpin for TimerFuture<T>where
T: Unpin,
impl<T> UnwindSafe for TimerFuture<T>where
T: UnwindSafe,
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