Trait bitcoin_io::BufRead
source · pub trait BufRead: Read {
// Required methods
fn fill_buf(&mut self) -> Result<&[u8]>;
fn consume(&mut self, amount: usize);
}
Expand description
A trait describing an input stream that uses an internal buffer when reading.