(plugin_id: Option<u64>, name: String)
| 20 | |
| 21 | impl TimerId { |
| 22 | pub fn new(plugin_id: Option<u64>, name: String) -> Self { |
| 23 | TimerId(plugin_id, name) |
| 24 | } |
| 25 | |
| 26 | pub fn identifies_timer(&self, timer: &IntervalTimer) -> bool { |
| 27 | timer.plugin_id == self.0 && timer.name == self.1 |