pub struct TimerContext {
pub unit: Option<String>,
pub accuracy_usec: Option<u64>,
pub randomized_delay_usec: Option<u64>,
pub fixed_random_delay: Option<bool>,
pub persistent: Option<bool>,
pub remain_after_elapse: Option<bool>,
}Expand description
Timer-specific configuration.
Fields§
§unit: Option<String>Unit this timer triggers, e.g. “logrotate.service”.
accuracy_usec: Option<u64>§randomized_delay_usec: Option<u64>§fixed_random_delay: Option<bool>§persistent: Option<bool>§remain_after_elapse: Option<bool>Trait Implementations§
Source§impl Clone for TimerContext
impl Clone for TimerContext
Source§fn clone(&self) -> TimerContext
fn clone(&self) -> TimerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimerContext
impl Debug for TimerContext
Source§impl<'de> Deserialize<'de> for TimerContext
impl<'de> Deserialize<'de> for TimerContext
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimerContext
impl RefUnwindSafe for TimerContext
impl Send for TimerContext
impl Sync for TimerContext
impl Unpin for TimerContext
impl UnsafeUnpin for TimerContext
impl UnwindSafe for TimerContext
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
Mutably borrows from an owned value. Read more