Protocol std::io::BufferedReadable
Readable streams that have an internal buffer.
Streams implementing this protocol enables them to be used by method such as read_until, which is aware of the internal buffer.
Required methods
-
Return the current contents of the buffer, reading additional data from the stream if necessary.
Does not move the internal buffer position.
-
Mark
amount
bytes as consumed, moving the internal buffer position forward.