pub struct Ds18b20Config {
pub active: bool,
pub execute: bool,
pub measurement_pause_duration_millis: u64,
pub system_driver_base_path: String,
pub system_driver_sensor_path_prefix: String,
pub system_driver_file_name: String,
pub max_retries: u32,
pub retry_pause_duration_millis: u64,
pub water_temperature_sensor_id: String,
pub ambient_temperature_sensor_id: String,
}Expand description
Holds the configuration data for DS18B20 sensor communication. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolused primarily for testing purposes
execute: boolindicates if thread shall be started or not
measurement_pause_duration_millis: u64pause duration between two measurements in milliseconds
system_driver_base_path: Stringsystem driver base path
system_driver_sensor_path_prefix: Stringsystem driver sensor-specific path
system_driver_file_name: Stringsystem driver file name
max_retries: u32max. number of retries
retry_pause_duration_millis: u64duration between retries in milliseconds
water_temperature_sensor_id: Stringunique 64-bit ID of water temperature sensor
ambient_temperature_sensor_id: Stringunique 64-bit ID of ambient temperature sensor
Trait Implementations§
Source§impl Debug for Ds18b20Config
impl Debug for Ds18b20Config
Source§impl<'de> Deserialize<'de> for Ds18b20Config
impl<'de> Deserialize<'de> for Ds18b20Config
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 Ds18b20Config
impl RefUnwindSafe for Ds18b20Config
impl Send for Ds18b20Config
impl Sync for Ds18b20Config
impl Unpin for Ds18b20Config
impl UnwindSafe for Ds18b20Config
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