1 use super::BaseUnit; 2 3 #[allow(dead_code)] 4 pub struct TimerUnit { 5 unit_base: BaseUnit, 6 timer_part: TimerPart, 7 } 8 9 #[allow(dead_code)] 10 pub struct TimerPart { 11 on_active_sec: u64, 12 on_boot_sec: u64, 13 on_start_up_sec: u64, 14 on_unit_inactive_sec: u64, 15 on_calendar: u64, 16 accuarcy_sec: u64, 17 randomized_delay_sec: u64, 18 fixed_random_delay: bool, 19 on_clock_change: bool, 20 on_time_zone_change: bool, 21 unit: usize, 22 persistent: bool, 23 wake_system: bool, 24 remain_after_elapse: bool, 25 } 26 27 pub enum TimerUnitAttr { 28 OnActiveSec, 29 OnBootSec, 30 OnStartUpSec, 31 OnUnitInactiveSec, 32 OnCalendar, 33 AccuarcySec, 34 RandomizedDelaySec, 35 FixedRandomDelay, 36 OnClockChange, 37 OnTimeZoneChange, 38 Unit, 39 Persistent, 40 WakeSystem, 41 RemainAfterElapse, 42 } 43