Struct ActuateControllinoConfig

Source
pub struct ActuateControllinoConfig {
Show 19 fields pub active: bool, pub baud_rate: u32, pub port_name: String, pub timeout_millis: u64, pub controllino_processing_millis: u64, pub skimmer_id: u8, pub main_pump1_id: u8, pub main_pump2_id: u8, pub aux_pump1_id: u8, pub aux_pump2_id: u8, pub refill_pump_id: u8, pub heater_id: u8, pub ventilation_id: u8, pub feeder_id: u8, pub peristaltic_pump1_id: u8, pub peristaltic_pump2_id: u8, pub peristaltic_pump3_id: u8, pub peristaltic_pump4_id: u8, pub heartbeat_interval_seconds: u64,
}
Expand description

Configuration settings for direct hardware actuation via the Controllino device.

This struct holds all parameters required to establish and manage communication with the Controllino (e.g., serial port settings) and maps application-level devices to their specific relay IDs on the Controllino board.

Fields§

§active: bool

Disables the functionality - required for certain testing scenarios

§baud_rate: u32

Baud rate for communication via serial port

§port_name: String

Port name for communication via serial port

§timeout_millis: u64

timeout in milliseconds for serial port communication

§controllino_processing_millis: u64

time in milliseconds to wait for response

§skimmer_id: u8

Relay id of the protein skimmer

  • Caution: relay login (true/false) and device logic (off/on) is reverse.
§main_pump1_id: u8

Relay id of the main pump #1

  • Caution: relay login (true/false) and device logic (off/on) is reverse.
§main_pump2_id: u8

Relay id of the main pump #2

  • Caution: relay login (true/false) and device logic (off/on) is reverse.
§aux_pump1_id: u8

Relay id of the auxiliary pump #1

  • Caution: relay login (true/false) and device logic (off/on) is reverse.
§aux_pump2_id: u8

Relay id of the auxiliary pump #2

  • Caution: relay login (true/false) and device logic (off/on) is reverse.
§refill_pump_id: u8

Relay id of the refill pump

§heater_id: u8

Relay id of the heater

§ventilation_id: u8

Relay id of ventilation

§feeder_id: u8

Relay id feeder

§peristaltic_pump1_id: u8

Relay id of peristaltic pump #1

§peristaltic_pump2_id: u8

Relay id of peristaltic pump #2

§peristaltic_pump3_id: u8

Relay id of peristaltic pump #3

§peristaltic_pump4_id: u8

Relay id of peristaltic pump #4

§heartbeat_interval_seconds: u64

Heartbeat interval

Trait Implementations§

Source§

impl Clone for ActuateControllinoConfig

Source§

fn clone(&self) -> ActuateControllinoConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ActuateControllinoConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ActuateControllinoConfig

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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