(&self, d: u64)
| 109 | } |
| 110 | |
| 111 | fn wait(&self, d: u64) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn error::Error>>>>> { |
| 112 | async move { |
| 113 | actix_web::rt::time::sleep(Duration::from_secs(d)).await; |
| 114 | Ok(String::from("pong")) |
| 115 | } |
| 116 | .boxed_local() |
| 117 | } |
| 118 | |
| 119 | fn get(&self) -> u32 { |
| 120 | self.c |