pub struct ExecutionConfig {Show 16 fields
pub relay_manager: bool,
pub data_logger: bool,
pub refill: bool,
pub heating: bool,
pub tank_level_switch: bool,
pub atlas_scientific: bool,
pub sensor_manager: bool,
pub feed: bool,
pub balling: bool,
pub monitors: bool,
pub ventilation: bool,
pub schedule_check: bool,
pub ds18b20: bool,
pub watchdog: bool,
pub memory: bool,
pub tcp_communication: bool,
}Expand description
A snapshot of which application threads are configured to be active at runtime.
This struct is created at application startup from the main ConfigData. It serves
as a lightweight, easily passable representation of the execution state, allowing
different parts of the application (like the messaging dispatcher) to quickly
check if a specific thread or module was launched without needing access to the
full configuration object.
Fields§
§relay_manager: bool§data_logger: bool§refill: bool§heating: bool§tank_level_switch: bool§atlas_scientific: bool§sensor_manager: bool§feed: bool§balling: bool§monitors: bool§ventilation: bool§schedule_check: bool§ds18b20: bool§watchdog: bool§memory: bool§tcp_communication: boolImplementations§
Source§impl ExecutionConfig
impl ExecutionConfig
Sourcepub fn new(config: &ConfigData) -> Self
pub fn new(config: &ConfigData) -> Self
Creates a new ExecutionConfig based on the application’s configuration file.
This constructor reads the execute flag from each module’s configuration
section within the provided ConfigData to build the execution state.
§Arguments
config- A reference to the fully parsed application configuration data.
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutionConfig
impl Debug for ExecutionConfig
Source§impl Default for ExecutionConfig
Implements the Default trait for ExecutionConfig.
impl Default for ExecutionConfig
Implements the Default trait for ExecutionConfig.
This provides a standard way to create a default instance where all modules are
considered active. This is particularly useful for testing environments or as a
fallback. Using the Default trait is more idiomatic than a custom default()
function and allows for convenient instantiation with ExecutionConfig::default().