Struct tokio_timerfd::Delay
source[−]pub struct Delay { /* private fields */ }
Expand description
A future that completes at a specified instant in time.
Instances of Delay perform no work and complete with () once the specified deadline has been reached.
Delay is powered by timerfd
and has a resolution of 1 nanosecond.
Implementations
Create a new Delay
instance that elapses at deadline
.
Returns true if the Delay
has elapsed
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Delay
impl !UnwindSafe for Delay
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.