pub struct TokioDelay;Expand description
DelayNs adapter backed by tokio::time::sleep.
Trait Implementations§
Source§impl Clone for TokioDelay
impl Clone for TokioDelay
Source§fn clone(&self) -> TokioDelay
fn clone(&self) -> TokioDelay
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokioDelay
impl Debug for TokioDelay
Source§impl Default for TokioDelay
impl Default for TokioDelay
Source§fn default() -> TokioDelay
fn default() -> TokioDelay
Returns the “default value” for a type. Read more
Source§impl DelayNs for TokioDelay
impl DelayNs for TokioDelay
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.impl Copy for TokioDelay
Auto Trait Implementations§
impl Freeze for TokioDelay
impl RefUnwindSafe for TokioDelay
impl Send for TokioDelay
impl Sync for TokioDelay
impl Unpin for TokioDelay
impl UnwindSafe for TokioDelay
Blanket Implementations§
§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)