Struct futures_timer::Delay
source · pub struct Delay { /* private fields */ }
Expand description
A future representing the notification that an elapsed duration has occurred.
This is created through the Delay::new
method indicating when the future should fire.
Note that these futures are not intended for high resolution timers, but rather they will
likely fire some granularity after the exact instant that they’re otherwise indicated to fire
at.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Delay
impl Send for Delay
impl Sync for Delay
impl Unpin for Delay
impl !UnwindSafe for Delay
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,
§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