(&mut self, msg: Vec<u8>)
| 155 | |
| 156 | #[inline] |
| 157 | pub async fn send_raw(&mut self, msg: Vec<u8>) -> ResultType<()> { |
| 158 | let mut msg = msg; |
| 159 | if let Some(key) = self.2.as_mut() { |
| 160 | msg = key.enc(&msg); |
| 161 | } |
| 162 | self.send_bytes(bytes::Bytes::from(msg)).await?; |
| 163 | Ok(()) |
| 164 | } |
| 165 | |
| 166 | #[inline] |
| 167 | pub async fn send_bytes(&mut self, bytes: Bytes) -> ResultType<()> { |
no test coverage detected