(&mut self, msg: &impl Message)
| 150 | |
| 151 | #[inline] |
| 152 | pub async fn send(&mut self, msg: &impl Message) -> ResultType<()> { |
| 153 | self.send_raw(msg.write_to_bytes()?).await |
| 154 | } |
| 155 | |
| 156 | #[inline] |
| 157 | pub async fn send_raw(&mut self, msg: Vec<u8>) -> ResultType<()> { |