pub struct TimerStats {
pub accuracy_usec: u64,
pub fixed_random_delay: bool,
pub last_trigger_usec: u64,
pub last_trigger_usec_monotonic: u64,
pub next_elapse_usec_monotonic: u64,
pub next_elapse_usec_realtime: u64,
pub persistent: bool,
pub randomized_delay_usec: u64,
pub remain_after_elapse: bool,
pub service_unit_last_state_change_usec: u64,
pub service_unit_last_state_change_usec_monotonic: u64,
}Expand description
Per-timer unit metrics from the org.freedesktop.systemd1.Timer D-Bus interface. Ref: https://www.freedesktop.org/software/systemd/man/org.freedesktop.systemd1.html
Fields§
§accuracy_usec: u64AccuracySec timer property in microseconds; systemd may coalesce timer firings within this window to save wakeups
fixed_random_delay: boolWhether FixedRandomDelay= is set; when true, the random delay is stable across reboots for this timer
last_trigger_usec: u64Realtime timestamp (usec since epoch) when this timer last triggered its service unit
last_trigger_usec_monotonic: u64Monotonic timestamp (usec since boot) when this timer last triggered its service unit
next_elapse_usec_monotonic: u64Monotonic timestamp (usec since boot) when this timer will next elapse
next_elapse_usec_realtime: u64Realtime timestamp (usec since epoch) when this timer will next elapse
persistent: boolWhether Persistent= is set; when true, missed timer runs (e.g. during downtime) are triggered on next boot
randomized_delay_usec: u64RandomizedDelaySec property in microseconds; a random delay up to this value is added before each trigger
remain_after_elapse: boolWhether RemainAfterElapse= is set; when true, the timer stays loaded after all triggers have elapsed
service_unit_last_state_change_usec: u64Realtime timestamp (usec since epoch) of the most recent state change of the triggered service unit
service_unit_last_state_change_usec_monotonic: u64Monotonic timestamp (usec since boot) of the most recent state change of the triggered service unit
Trait Implementations§
Source§impl Clone for TimerStats
impl Clone for TimerStats
Source§fn clone(&self) -> TimerStats
fn clone(&self) -> TimerStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimerStats
impl Debug for TimerStats
Source§impl Default for TimerStats
impl Default for TimerStats
Source§fn default() -> TimerStats
fn default() -> TimerStats
Source§impl<'de> Deserialize<'de> for TimerStats
impl<'de> Deserialize<'de> for TimerStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FieldNamesAsArray<11> for TimerStats
impl FieldNamesAsArray<11> for TimerStats
Source§const FIELD_NAMES_AS_ARRAY: [&'static str; 11]
const FIELD_NAMES_AS_ARRAY: [&'static str; 11]
Generated array of field names for TimerStats.
Source§impl PartialEq for TimerStats
impl PartialEq for TimerStats
Source§impl Serialize for TimerStats
impl Serialize for TimerStats
impl Eq for TimerStats
impl StructuralPartialEq for TimerStats
Auto Trait Implementations§
impl Freeze for TimerStats
impl RefUnwindSafe for TimerStats
impl Send for TimerStats
impl Sync for TimerStats
impl Unpin for TimerStats
impl UnwindSafe for TimerStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.