Function process_external_request_without_messaging

Source
fn process_external_request_without_messaging(
    rx_from_signal_handler: &mut AquaReceiver<InternalCommand>,
    sender: String,
) -> (bool, bool, bool)
Expand description

Checks for new commands from the signal handler, specifically for modules that don’t use messaging.

This associated function provides a streamlined way to process external requests for components that only listen to the signal handler channel. It attempts to receive without blocking InternalCommand messages and specifically looks for a Quit command.

§Arguments

  • rx_from_signal_handler - A reference to the receiver end of the channel for commands originating from the signal handler.

§Returns

A tuple (bool, bool, bool) indicating the status of commands received:

  • The first bool is true if a Quit command was received; otherwise false.
  • The second bool is always false as “Start” commands are not processed by this function.
  • The third bool is always false as “Stop” commands are not processed by this function.