[][src]Trait bytes::buf::Source

pub trait Source {
    type Error;
    fn fill<B: MutBuf>(self, buf: &mut B) -> Result<usize, Self::Error>;
}

A value that writes bytes from itself into a MutBuf.

Associated Types

type Error

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

impl<'a> Source for &'a [u8][src]

type Error = BufError

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

type Error = BufError

impl<'a, R: Read + 'a> Source for &'a mut R[src]

type Error = Error

Loading content...

Implementors

impl<'a> Source for &'a Bytes[src]

type Error = BufError

impl<'a> Source for &'a Rope[src]

type Error = BufError

Loading content...