[][src]Trait bytes::buf::Sink

pub trait Sink {
    type Error;
    fn sink<B: Buf>(self, buf: &mut B) -> Result<usize, Self::Error>;
}

A value that reads bytes from a Buf into itself

Associated Types

type Error

Loading content...

Required methods

fn sink<B: Buf>(self, buf: &mut B) -> Result<usize, Self::Error>

Loading content...

Implementations on Foreign Types

impl<'a> Sink for &'a mut [u8][src]

type Error = BufError

impl<'a> Sink for &'a mut Vec<u8>[src]

type Error = BufError

Loading content...

Implementors

Loading content...