Trait Sink
bytes::buf
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
type Error
fn sink<B: Buf>(self, buf: &mut B) -> Result<usize, Self::Error>
impl<'a> Sink for &'a mut [u8]
type Error = BufError
fn sink<B: Buf>(self, buf: &mut B) -> Result<usize, BufError>
impl<'a> Sink for &'a mut Vec<u8>