(&self, t: DateTime<Utc>)
| 275 | |
| 276 | impl ParsedIntervalType { |
| 277 | fn next_run_time(&self, t: DateTime<Utc>) -> Option<DateTime<Utc>> { |
| 278 | match self { |
| 279 | Self::Cron(_, c) => c.after(&t).next(), |
| 280 | Self::Minutes(minutes) => Some(t.add(chrono::Duration::minutes(*minutes as i64))), |
| 281 | } |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | pub type NextAction = crate::guild_handler::NextTimerAction; |
no test coverage detected