1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
//! Dummy timer which is used on platforms without own implementation use crate::{TimerState, Timer}; use core::time; ///Dummy timer. /// ///Holds no particular implementation and panics when used. pub struct DummyTimer { } impl Timer for DummyTimer { fn new(_: *const TimerState) -> Self { unimplemented!() } fn reset(&mut self) { unimplemented!() } fn start_delay(&mut self, _: time::Duration) { unimplemented!() } fn start_interval(&mut self, _: time::Duration) { unimplemented!() } fn state(&self) -> &TimerState { unimplemented!() } }