pub struct Deadline { /* private fields */ }Expand description
Expire at a specific SystemTime.
Implementations§
Source§impl Deadline
impl Deadline
pub fn new(at: SystemTime) -> Self
Sourcepub fn reset(&mut self, to: SystemTime)
pub fn reset(&mut self, to: SystemTime)
§Race
There is a race condition if the deadline is reset after after the reactor has been notified.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Deadline
impl !RefUnwindSafe for Deadline
impl Send for Deadline
impl Sync for Deadline
impl Unpin for Deadline
impl !UnwindSafe for Deadline
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