pub fn unprocessed(&mut self, data: Bytes) {
        let buf = BytesMut::from(data.as_ref());
        let buf = std::mem::replace(&mut self.buf, buf);
        self.buf.extend_from_slice(&buf);
    }
/// Put unprocessed data back to the buffer
Put unprocessed data back to the buffer
Put unprocessed data back to the buffer
pub fn unprocessed(&mut self, data: Bytes) {
        let buf = BytesMut::from(data.as_ref());
        let buf = std::mem::replace(&mut self.buf, buf);
        self.buf.extend_from_slice(&buf);
    }
pub fn unprocessed ( & mut self , data : Bytes ) { let buf = BytesMut :: from ( data . as_ref ( ) ) ; let buf = std :: mem :: replace ( & mut self . buf , buf ) ; self . buf . extend_from_slice ( & buf ) ; }
Put unprocessed data back to the buffer
Put unprocessed data back to the buffer
&mut self
data
Bytes
&mut self
data
Bytes