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

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