pub struct NeverTimer;
Expand description
Timer that never expires.
Trait Implementations§
Source§impl Future for NeverTimer
impl Future for NeverTimer
Source§impl Oneshot for NeverTimer
impl Oneshot for NeverTimer
Source§fn is_ticking(&self) -> bool
fn is_ticking(&self) -> bool
Returns whether timer is ongoing. Read more
Source§fn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Returns whether timer has expired.
Auto Trait Implementations§
impl Freeze for NeverTimer
impl RefUnwindSafe for NeverTimer
impl Send for NeverTimer
impl Sync for NeverTimer
impl Unpin for NeverTimer
impl UnwindSafe for NeverTimer
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