Struct BallingConfig

Source
pub struct BallingConfig {
    pub active: bool,
    pub execute: bool,
    pub pump1_active: bool,
    pub pump2_active: bool,
    pub pump3_active: bool,
    pub pump4_active: bool,
    pub schedule_check_interval: u32,
    pub dosing_interval_pump1: u32,
    pub dosing_interval_pump2: u32,
    pub dosing_interval_pump3: u32,
    pub dosing_interval_pump4: u32,
    pub pump_switch_delay_millis: u32,
}
Expand description

Holds the configuration data for the balling dosing control. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.

Fields§

§active: bool

control will only be active when the flag is set to true

§execute: bool

indicates if the thread shall be started or not

§pump1_active: bool

pump #1 will only be used when the flag is set to true

§pump2_active: bool

pump #2 will only be used when the flag is set to true

§pump3_active: bool

pump #3 will only be used when the flag is set to true

§pump4_active: bool

pump #4 will only be used when the flag is set to true

§schedule_check_interval: u32

interval for the main control in seconds

§dosing_interval_pump1: u32

inject Balling minerals with pump 1 after each period

§dosing_interval_pump2: u32

inject Balling minerals with pump 2 after each period

§dosing_interval_pump3: u32

inject Balling minerals with pump 3 after each period

§dosing_interval_pump4: u32

inject Balling minerals with pump 4 after each period

§pump_switch_delay_millis: u32

wait for a fixed period between dosings from different pumps

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for BallingConfig

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T