pub struct Sleep { /* private fields */ }Expand description
Implementations
Create new sleep future
Returns true if Sleep has elapsed.
Resets the Sleep instance to a new deadline.
Calling this function allows changing the instant at which the Sleep
future completes without having to create new associated state.
This function can be called both before and after the future has completed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sleep
impl UnwindSafe for Sleep
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.