#[non_exhaustive]pub struct Delay;
Available on crate feature
unstable
only.Expand description
Delay driver, using Instant
.
Implementations§
Source§impl Delay
impl Delay
Sourcepub fn delay_millis(&self, ms: u32)
pub fn delay_millis(&self, ms: u32)
Delay for the specified number of milliseconds
Sourcepub fn delay_micros(&self, us: u32)
pub fn delay_micros(&self, us: u32)
Delay for the specified number of microseconds
Sourcepub fn delay_nanos(&self, ns: u32)
pub fn delay_nanos(&self, ns: u32)
Delay for the specified number of nanoseconds
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.impl Copy for Delay
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)