pub trait Sleep: Send + Sync + Future<Output = ()> { // Required method fn reset(self: Pin<&mut Self>, new_deadline: Instant); }
A future returned by a Timer.
Timer
Reset the future to resolve at new_deadline instead.
new_deadline