Struct RelayManagerChannels

Source
pub struct RelayManagerChannels {
    pub tx_relay_manager_to_refill: AquaSender<bool>,
    pub rx_relay_manager_from_refill: AquaReceiver<InternalCommand>,
    pub tx_relay_manager_to_heating: AquaSender<bool>,
    pub rx_relay_manager_from_heating: AquaReceiver<InternalCommand>,
    pub tx_relay_manager_to_ventilation: AquaSender<bool>,
    pub rx_relay_manager_from_ventilation: AquaReceiver<InternalCommand>,
    pub tx_relay_manager_to_balling: AquaSender<bool>,
    pub rx_relay_manager_from_balling: AquaReceiver<InternalCommand>,
    pub tx_relay_manager_to_feed: AquaSender<bool>,
    pub rx_relay_manager_from_feed: AquaReceiver<InternalCommand>,
    pub tx_relay_manager_to_signal_handler: AquaSender<bool>,
    pub rx_relay_manager_from_signal_handler: AquaReceiver<InternalCommand>,
}
Expand description

Container for channels used by relay manager

Fields§

§tx_relay_manager_to_refill: AquaSender<bool>

sender part of the channel for communication to the refill thread

§rx_relay_manager_from_refill: AquaReceiver<InternalCommand>

receiver part of the channel for communication from the refill thread

§tx_relay_manager_to_heating: AquaSender<bool>

sender part of the channel for communication to the heating thread

§rx_relay_manager_from_heating: AquaReceiver<InternalCommand>

receiver part of the channel for communication from the heating thread

§tx_relay_manager_to_ventilation: AquaSender<bool>

sender part of the channel for communication to the ventilation thread

§rx_relay_manager_from_ventilation: AquaReceiver<InternalCommand>

receiver part of the channel for communication from the ventilation thread

§tx_relay_manager_to_balling: AquaSender<bool>

sender part of the channel for communication to the Balling dosing thread

§rx_relay_manager_from_balling: AquaReceiver<InternalCommand>

receiver part of the channel for communication from the Balling dosing thread

§tx_relay_manager_to_feed: AquaSender<bool>

sender part of the channel for communication to the feed thread

§rx_relay_manager_from_feed: AquaReceiver<InternalCommand>

receiver part of the channel for communication from the feed thread

§tx_relay_manager_to_signal_handler: AquaSender<bool>

sender part of the channel for communication to the signal handler

§rx_relay_manager_from_signal_handler: AquaReceiver<InternalCommand>

receiver part of the channel for communication from the signal handler

Implementations§

Source§

impl RelayManagerChannels

Source

pub fn send_to_refill(&mut self, ack: bool) -> Result<(), AquaChannelError>

Sends a response to the refill module.

Source

pub fn receive_from_refill( &mut self, ) -> Result<InternalCommand, AquaChannelError>

Receives a command from the refill module (non-blocking).

Source

pub fn send_to_heating(&mut self, ack: bool) -> Result<(), AquaChannelError>

Sends a response to the heating module.

Source

pub fn receive_from_heating( &mut self, ) -> Result<InternalCommand, AquaChannelError>

Receives a command from the heating module (non-blocking).

Source

pub fn send_to_ventilation(&mut self, ack: bool) -> Result<(), AquaChannelError>

Sends a response to the ventilation module.

Source

pub fn receive_from_ventilation( &mut self, ) -> Result<InternalCommand, AquaChannelError>

Receives a command from the ventilation module (non-blocking).

Source

pub fn send_to_balling(&mut self, ack: bool) -> Result<(), AquaChannelError>

Sends a response to the balling module.

Source

pub fn receive_from_balling( &mut self, ) -> Result<InternalCommand, AquaChannelError>

Receives a command from the balling module (non-blocking).

Source

pub fn send_to_feed(&mut self, ack: bool) -> Result<(), AquaChannelError>

Sends a response to the feed module.

Source

pub fn receive_from_feed(&mut self) -> Result<InternalCommand, AquaChannelError>

Receives a command from the feed module (non-blocking).

Source

pub fn send_to_signal_handler( &mut self, ack: bool, ) -> Result<(), AquaChannelError>

Sends a response to the signal handler.

Source

pub fn receive_from_signal_handler( &mut self, ) -> Result<InternalCommand, AquaChannelError>

Receives a command from the signal handler (non-blocking).

Trait Implementations§

Source§

impl AcknowledgeSignalHandlerTrait for RelayManagerChannels

Source§

fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>

Sends the raw acknowledgment message (true) to the SignalHandler. Read more
Source§

fn location(&self) -> String

Returns the source location (module path) for logging purposes. Read more
Source§

fn acknowledge_signal_handler(&mut self)

Acknowledges the SignalHandler by sending a confirmation message. Read more
Source§

impl Display for RelayManagerChannels

Source§

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

Formats the value using the given formatter. 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T