pub struct MonitorsChannels {
pub rx_monitors_from_refill: AquaReceiver<RefillMonitorView>,
pub tx_monitors_to_signal_handler: AquaSender<bool>,
pub rx_monitors_from_signal_handler: AquaReceiver<InternalCommand>,
pub rx_monitors_from_messaging_opt: Option<AquaReceiver<InternalCommand>>,
}Expand description
Struct collects the channels for communication between Monitors and other components.
Fields§
§rx_monitors_from_refill: AquaReceiver<RefillMonitorView>Receiver part of the channel for communication from Refill
tx_monitors_to_signal_handler: AquaSender<bool>Sender part of the channel for communication to the signal handler
rx_monitors_from_signal_handler: AquaReceiver<InternalCommand>Receiver part of the channel for communication from the signal handler
rx_monitors_from_messaging_opt: Option<AquaReceiver<InternalCommand>>Receiver part of the channel for communication from the messaging
Implementations§
Source§impl MonitorsChannels
impl MonitorsChannels
Sourcepub fn receive_from_refill(
&mut self,
) -> Result<RefillMonitorView, AquaChannelError>
pub fn receive_from_refill( &mut self, ) -> Result<RefillMonitorView, AquaChannelError>
Receives a monitor view from the refill module.
This wrapper performs a non-blocking receive-operation and increments the debug counter on success.
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.
This wrapper sends a boolean acknowledgment and increments the debug counter.
Sourcepub fn receive_from_signal_handler(
&mut self,
) -> Result<InternalCommand, AquaChannelError>
pub fn receive_from_signal_handler( &mut self, ) -> Result<InternalCommand, AquaChannelError>
Receives a command from the signal handler.
This wrapper performs a non-blocking receive-operation and increments the debug counter on success.
Sourcepub fn receive_from_messaging(
&mut self,
) -> Option<Result<InternalCommand, AquaChannelError>>
pub fn receive_from_messaging( &mut self, ) -> Option<Result<InternalCommand, AquaChannelError>>
Receives a command from messaging if the channel exists.
This wrapper performs a non-blocking receive-operation and increments the debug counter on success.
Trait Implementations§
Source§impl AcknowledgeSignalHandlerTrait for MonitorsChannels
impl AcknowledgeSignalHandlerTrait for MonitorsChannels
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