Skip to main content

map_timer_stats

Function map_timer_stats 

Source
pub fn map_timer_stats(
    output: &ListOutput,
    triggered: Option<&ListOutput>,
) -> TimerStats
Expand description

Map a Unit.List reply onto TimerStats.

triggered is the reply for the unit this timer starts, looked up separately because its state change timestamps are properties of that unit rather than of the timer. None when it could not be resolved, which leaves those two fields at 0 — the same as the D-Bus path, which reports 0 when the timer names no unit.