Trait bytes::buf::BufExt
[−]
[src]
pub trait BufExt { fn read<S: Sink>(&mut self, dst: S) -> Result<usize, S::Error>; }
An extension trait providing extra functions applicable to all Buf
values.
Required Methods
fn read<S: Sink>(&mut self, dst: S) -> Result<usize, S::Error>
Read bytes from this Buf into the given sink and advance the cursor by the number of bytes read.