async fn handle_simple_command(&mut self) -> Result<()> {
        // Create the message that should be sent to the daemon
        // depending on the given commandline options.
        let message = self.get_message_from_opt()?;

        // Create the message payload and send it to the daemon.
        send_message(message, &mut self.socket).await?;

        // Check if we can receive the response from the daemon
        let mut response = receive_message(&mut self.socket).await?;

        // Check if we can receive the response from the daemon
        while self.handle_response(response) {
            response = receive_message(&mut self.socket).await?;
        }

        Ok(())
    }
/// Handle logic that's super generic on the client-side.
/// This always follows a singular ping-pong pattern.
/// One message to the daemon, one response, Done.
Handle logic that's super generic on the client-side.
This always follows a singular ping-pong pattern.
One message to the daemon, one response, Done.
Handle logic that ' s super generic on the client - side . This always follows a singular ping - pong pattern . One message to the daemon one response Done .
async fn handle_simple_command(&mut self) -> Result<()> {
        // Create the message that should be sent to the daemon
        // depending on the given commandline options.
        let message = self.get_message_from_opt()?;
        // Create the message payload and send it to the daemon.
        send_message(message, &mut self.socket).await?;
        // Check if we can receive the response from the daemon
        let mut response = receive_message(&mut self.socket).await?;
        // Check if we can receive the response from the daemon
        while self.handle_response(response) {
            response = receive_message(&mut self.socket).await?;
        }
        Ok(())
    }
async fn handle_simple_command ( & mut self ) -> Result < ( ) > { // Create the message that should be sent to the daemon // depending on the given commandline options. let message = self . get_message_from_opt ( ) ? ; // Create the message payload and send it to the daemon. send_message ( message , & mut self . socket ) . await ? ; // Check if we can receive the response from the daemon let mut response = receive_message ( & mut self . socket ) . await ? ; // Check if we can receive the response from the daemon while self . handle_response ( response ) { response = receive_message ( & mut self . socket ) . await ? ; } Ok ( ( ) ) }
Handle logic that's super generic on the client-side.
Handle logic that ' s super generic on the client - side .
&mut self