pub struct WatchdogConfig {
pub active: bool,
pub execute: bool,
pub watchdog_filename: String,
pub watchdog_heartbeat: String,
pub heartbeat_duration_millis: u64,
pub watchdog_deactivation: String,
}Expand description
Holds the configuration data for the watchdog communication. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolcommunication will only be active when the flag is set to true
execute: boolindicates if the thread shall be started or not
watchdog_filename: Stringfilename for sending heartbeat to system watchdog
watchdog_heartbeat: Stringheartbeat to be written to watchdog file
heartbeat_duration_millis: u64duration between two heartbeats in milliseconds
watchdog_deactivation: Stringdeactivation code to be written to watchdog file upon termination of the application
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WatchdogConfig
impl<'de> Deserialize<'de> for WatchdogConfig
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 WatchdogConfig
impl RefUnwindSafe for WatchdogConfig
impl Send for WatchdogConfig
impl Sync for WatchdogConfig
impl Unpin for WatchdogConfig
impl UnwindSafe for WatchdogConfig
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