pub struct RelayManagerConfig {
pub active: bool,
pub execute: bool,
pub use_simulator: bool,
pub use_gpio: bool,
pub actuation_retries: u64,
pub pause_between_retries_millis: u64,
}Expand description
Holds the configuration data for the relay manager. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolSwitch for testing purposes enabling main functionalities
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
use_gpio: boolFlag to determine if the application shall use GPIO or Controllino
actuation_retries: u64The number of retries in case write operation to actuator fails Applicable only to Controllino, because GPIO actuation does not execute a write operation
pause_between_retries_millis: u64Pause time in milliseconds between retries
Trait Implementations§
Source§impl Clone for RelayManagerConfig
impl Clone for RelayManagerConfig
Source§fn clone(&self) -> RelayManagerConfig
fn clone(&self) -> RelayManagerConfig
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 Debug for RelayManagerConfig
impl Debug for RelayManagerConfig
Source§impl<'de> Deserialize<'de> for RelayManagerConfig
impl<'de> Deserialize<'de> for RelayManagerConfig
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
Source§impl Display for RelayManagerConfig
impl Display for RelayManagerConfig
Auto Trait Implementations§
impl Freeze for RelayManagerConfig
impl RefUnwindSafe for RelayManagerConfig
impl Send for RelayManagerConfig
impl Sync for RelayManagerConfig
impl Unpin for RelayManagerConfig
impl UnwindSafe for RelayManagerConfig
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