pub async fn send_message(&mut self, string: &str) -> Result<()> {
        let event = TelnetEvent::Message(string.to_string());

        self.frame.send(event).await.map_err(|e| Error {
            kind: ErrorType::Internal,
            message: e.to_string(),
        })
    }
/// Sends a Telnet message to the client.
Sends a Telnet message to the client.
Sends a Telnet message to the client .
pub async fn send_message(&mut self, string: &str) -> Result<()> {
        let event = TelnetEvent::Message(string.to_string());
        self.frame.send(event).await.map_err(|e| Error {
            kind: ErrorType::Internal,
            message: e.to_string(),
        })
    }
pub async fn send_message ( & mut self , string : & str ) -> Result < ( ) > { let event = TelnetEvent :: Message ( string . to_string ( ) ) ; self . frame . send ( event ) . await . map_err ( | e | Error { kind : ErrorType :: Internal , message : e . to_string ( ) , } ) }
Sends a Telnet message to the client.
Sends a Telnet message to the client .
&mut self
string
&str
&mut self
string
&str