Take ownership of the buffer, preventing return to pool
(mut self)
| 337 | |
| 338 | /// Take ownership of the buffer, preventing return to pool |
| 339 | pub fn take(mut self) -> BytesMut { |
| 340 | self.buffer.take().expect("Buffer should be available") |
| 341 | } |
| 342 | |
| 343 | /// Get the length of the buffer |
| 344 | pub fn len(&self) -> usize { |
no outgoing calls