pub struct DummyTimer;
Expand description
Dummy Timer with implementation that panics
Implementations§
Trait Implementations§
source§impl Future for DummyTimer
impl Future for DummyTimer
source§impl SyncTimer for DummyTimer
impl SyncTimer for DummyTimer
source§impl Timer for DummyTimer
impl Timer for DummyTimer
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.
source§fn restart_ctx(&mut self, _: Duration, _: &Waker)
fn restart_ctx(&mut self, _: Duration, _: &Waker)
Restarts timer with new timeout value and waker.
Auto Trait Implementations§
impl Freeze for DummyTimer
impl RefUnwindSafe for DummyTimer
impl Send for DummyTimer
impl Sync for DummyTimer
impl Unpin for DummyTimer
impl UnwindSafe for DummyTimer
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