pub async fn send(&mut self, messages: Vec<Message>) -> io::Result<()> {
        for message in messages {
            log::debug!("{:?}", message);
            self.socket.write_all(message.as_vec().as_slice()).await?;
        }
        log::debug!("end of the command is sent");
        Ok(())
    }
/// Sends response messages to client. Most of the time it is a single
/// message, select result one of the exceptional situation
Sends response messages to client. Most of the time it is a single
message, select result one of the exceptional situation
Sends response messages to client . Most of the time it is a single message select result one of the exceptional situation
pub async fn send(&mut self, messages: Vec<Message>) -> io::Result<()> {
        for message in messages {
            log::debug!("{:?}", message);
            self.socket.write_all(message.as_vec().as_slice()).await?;
        }
        log::debug!("end of the command is sent");
        Ok(())
    }
pub async fn send ( & mut self , messages : Vec < Message > ) -> io :: Result < ( ) > { for message in messages { log :: debug ! ( " " message ) ; self . socket . write_all ( message . as_vec ( ) . as_slice ( ) ) . await ? ; } log :: debug ! ( " " ) ; Ok ( ( ) ) }
Sends response messages to client.
Sends response messages to client .
&mut self
messages
Vec<Message>
&mut self
messages
Vec<Message>