pub async fn write_unary_command(
        &mut self,
        cmd: &str,
        arg: &str,
    ) -> Result<(), crate::error::Error> {
        let text = format!("{} {}\r\n", cmd, arg);
        self.stream.get_mut().write_all(text.as_bytes()).await?;

        Ok(())
    }
/// Write a command with one argument to the server.
Write a command with one argument to the server.
Write a command with one argument to the server .
pub async fn write_unary_command(
        &mut self,
        cmd: &str,
        arg: &str,
    ) -> Result<(), crate::error::Error> {
        let text = format!("{} {}\r\n", cmd, arg);
        self.stream.get_mut().write_all(text.as_bytes()).await?;
        Ok(())
    }
pub async fn write_unary_command ( & mut self , cmd : & str , arg : & str , ) -> Result < ( ) , crate :: error :: Error > { let text = format ! ( " \r \n " cmd arg ) ; self . stream . get_mut ( ) . write_all ( text . as_bytes ( ) ) . await ? ; Ok ( ( ) ) }
Write a command with one argument to the server.
Write a command with one argument to the server .
&mut self
cmd
&str
arg
&str
&mut self
cmd
&str
arg
&str