pub struct Delay;
Expand description
Delay driver
Implementations§
Source§impl Delay
impl Delay
Sourcepub fn delay_millis(&self, ms: u32)
pub fn delay_millis(&self, ms: u32)
Delay for at least the number of specific milliseconds.
Sourcepub fn delay_micros(&self, us: u32)
pub fn delay_micros(&self, us: u32)
Delay for at least the number of specific microseconds.
Sourcepub fn delay_nanos(&self, ns: u32)
pub fn delay_nanos(&self, ns: u32)
Delay for at least the number of specific 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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)