async_timer/oneshot/
dummy.rs

1//! Dummy Timer
2
3use core::{task, time};
4use core::future::Future;
5use core::pin::Pin;
6
7///Dummy Timer
8pub struct DummyTimer;
9
10impl super::Oneshot for DummyTimer {
11    fn new(_: time::Duration) -> Self {
12        unimplemented!();
13    }
14
15    fn is_ticking(&self) -> bool {
16        false
17    }
18
19    fn is_expired(&self) -> bool {
20        false
21    }
22
23    fn cancel(&mut self) {
24        unimplemented!();
25    }
26
27    fn restart(&mut self, _: time::Duration, _: &task::Waker) {
28        unimplemented!();
29    }
30}
31
32impl Future for DummyTimer {
33    type Output = ();
34
35    fn poll(self: Pin<&mut Self>, _: &mut task::Context) -> task::Poll<Self::Output> {
36        unimplemented!();
37    }
38}
39