pub struct SleepPrecise { /* private fields */ }Expand description
A future that completes at its deadline, to the microsecond. Made by
sleep_precise and sleep_until_precise.
Polled on one of nuclei’s shards, it arms a timer in that shard’s microsecond wheel; polled anywhere else (another runtime’s thread), it asks a shard of the current runtime (or the default one) to fire it. Dropping it cancels the timer.
Implementations§
Trait Implementations§
Source§impl Debug for SleepPrecise
impl Debug for SleepPrecise
Source§impl Future for SleepPrecise
impl Future for SleepPrecise
Auto Trait Implementations§
impl !RefUnwindSafe for SleepPrecise
impl !UnwindSafe for SleepPrecise
impl Freeze for SleepPrecise
impl Send for SleepPrecise
impl Sync for SleepPrecise
impl Unpin for SleepPrecise
impl UnsafeUnpin for SleepPrecise
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more