///Run a single command on this connection, using `buffer` for serialization.
///See [`run_commands_with_buffer`](struct.Connection.html#method.run_commands_with_buffer) for more details.
Run a single command on this connection, using `buffer` for serialization.
Run a single command on this connection using ` buffer ` for serialization .
pub async fn run_command_with_buffer(
        &mut self,
        command: Command<'_>,
        buffer: &mut Vec<u8>,
    ) -> Result<Value> {
        let mut stream = self.stream.lock().await;
        command.serialize(buffer);
        stream.write_all(&buffer).await?;
        Ok(Self::read_value(&mut stream).await?)
    }
pub async fn run_command_with_buffer ( & mut self , command : Command < ' _ > , buffer : & mut Vec < u8 > , ) -> Result < Value > { let mut stream = self . stream . lock ( ) . await ; command . serialize ( buffer ) ; stream . write_all ( & buffer ) . await ? ; Ok ( Self :: read_value ( & mut stream ) . await ? ) }
Run a single command on this connection, using `buffer` for serialization.
Run a single command on this connection using ` buffer ` for serialization .
&mut self
command
Command<'_>
buffer
&mut Vec<u8>