pub struct HeatingChannels {
pub tx_heating_to_relay_manager: AquaSender<InternalCommand>,
pub rx_heating_from_relay_manager: AquaReceiver<bool>,
pub tx_heating_to_signal_handler: AquaSender<bool>,
pub rx_heating_from_signal_handler: AquaReceiver<InternalCommand>,
pub tx_heating_to_schedule_check: AquaSender<InternalCommand>,
pub rx_heating_from_schedule_check: AquaReceiver<bool>,
pub rx_heating_from_messaging_opt: Option<AquaReceiver<InternalCommand>>,
}Expand description
Struct collects the channels for communication to relay manager, signal handler, data logger, schedule check, and messaging.
Fields§
§tx_heating_to_relay_manager: AquaSender<InternalCommand>Sender part of the channel for communication to the relay manager
rx_heating_from_relay_manager: AquaReceiver<bool>Receiver part of the channel for communication from the relay manager
tx_heating_to_signal_handler: AquaSender<bool>Sender part of the channel for communication to the signal handler
rx_heating_from_signal_handler: AquaReceiver<InternalCommand>Receiver part of the channel for communication from the signal handler
tx_heating_to_schedule_check: AquaSender<InternalCommand>Sender part of the channel for communication to the schedule checker
rx_heating_from_schedule_check: AquaReceiver<bool>Receiver part of the channel for communication from the schedule checker
rx_heating_from_messaging_opt: Option<AquaReceiver<InternalCommand>>Receiver part of the channel for communication from the messaging
Implementations§
Source§impl HeatingChannels
impl HeatingChannels
Sourcepub fn send_to_relay_manager(
&mut self,
command: InternalCommand,
) -> Result<(), AquaChannelError>
pub fn send_to_relay_manager( &mut self, command: InternalCommand, ) -> Result<(), AquaChannelError>
Sends a command to the relay manager.
Sourcepub fn receive_from_relay_manager(&mut self) -> Result<bool, AquaChannelError>
pub fn receive_from_relay_manager(&mut self) -> Result<bool, AquaChannelError>
Receives a response from the relay manager.
Sourcepub fn send_to_signal_handler(
&mut self,
ack: bool,
) -> Result<(), AquaChannelError>
pub fn send_to_signal_handler( &mut self, ack: bool, ) -> Result<(), AquaChannelError>
Sends an acknowledgment to the signal handler.
Sourcepub fn send_to_schedule_check(
&mut self,
command: InternalCommand,
) -> Result<(), AquaChannelError>
pub fn send_to_schedule_check( &mut self, command: InternalCommand, ) -> Result<(), AquaChannelError>
Sends a command to the schedule checker.
Sourcepub fn receive_from_schedule_check(&mut self) -> Result<bool, AquaChannelError>
pub fn receive_from_schedule_check(&mut self) -> Result<bool, AquaChannelError>
Receives a response from the schedule checker.
Trait Implementations§
Source§impl AcknowledgeSignalHandlerTrait for HeatingChannels
impl AcknowledgeSignalHandlerTrait for HeatingChannels
Source§fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>
fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>
Source§fn location(&self) -> String
fn location(&self) -> String
Source§fn acknowledge_signal_handler(&mut self)
fn acknowledge_signal_handler(&mut self)
SignalHandler by sending a confirmation message. Read more