pub struct TankLevelSwitchConfig {
pub active: bool,
pub execute: bool,
pub use_simulator: bool,
pub tank_level_switch_position_low_stabilization_count: u32,
}Expand description
Holds the configuration data for the tank level switch calculation. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolsignal processing is only active when the flag is set to true
execute: boolindicates if the thread shall be started or not
use_simulator: boolflag to determine if the application shall communicate with hardware directly or via TCP with a simulator
tank_level_switch_position_low_stabilization_count: u32the number of seconds which need to indicate a low level before the refill control assumes that the water level is low
Trait Implementations§
Source§impl Clone for TankLevelSwitchConfig
impl Clone for TankLevelSwitchConfig
Source§fn clone(&self) -> TankLevelSwitchConfig
fn clone(&self) -> TankLevelSwitchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for TankLevelSwitchConfig
impl<'de> Deserialize<'de> for TankLevelSwitchConfig
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 TankLevelSwitchConfig
impl RefUnwindSafe for TankLevelSwitchConfig
impl Send for TankLevelSwitchConfig
impl Sync for TankLevelSwitchConfig
impl Unpin for TankLevelSwitchConfig
impl UnwindSafe for TankLevelSwitchConfig
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