Function process_standard_request

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

Checks for specific standard commands (Terminate or Quit) from the signal handler channel.

This associated function is a streamlined helper for implementations that primarily need to react to global termination signals. It attempts to receive without blocking InternalCommand messages and returns true if either a Terminate or Quit command is found. Other commands are logged as warnings.

§Arguments

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

§Returns

true if either a Terminate or Quit command was received; otherwise false.