Get a mutable reference to the underlying buffer
(&mut self)
| 327 | |
| 328 | /// Get a mutable reference to the underlying buffer |
| 329 | pub fn buffer_mut(&mut self) -> &mut BytesMut { |
| 330 | self.buffer.as_mut().expect("Buffer should be available") |
| 331 | } |
| 332 | |
| 333 | /// Get an immutable reference to the underlying buffer |
| 334 | pub fn buffer(&self) -> &BytesMut { |
no outgoing calls