[][src]Trait bytes::buf::BufExt

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.

Loading content...

Implementors

impl<B: Buf> BufExt for B[src]

Loading content...