[][src]Trait varnishslog::stream_buf::StreamBuf

pub trait StreamBuf<O> {
    fn fill(&mut self, min_count: usize) -> Result<(), FillError>;
fn relocate(&mut self);
fn consume(&mut self, count: usize);
fn data(&self) -> &[O];
fn needed(&self) -> Option<Needed>;
fn apply<'b, C, CO, E>(
        &'b self,
        combinator: C
    ) -> Result<Option<CO>, Err<&'b [O], E>>
    where
        O: 'b,
        C: Fn(&'b [O]) -> IResult<&'b [O], CO, E>
; fn fill_apply<'b, C, CO, E>(
        &'b mut self,
        combinator: C
    ) -> Result<Option<CO>, FillApplyError<&'b [O], E>>
    where
        C: Fn(&'b [O]) -> IResult<&'b [O], CO, E>
, { ... } }

Required methods

fn fill(&mut self, min_count: usize) -> Result<(), FillError>

fn relocate(&mut self)

fn consume(&mut self, count: usize)

fn data(&self) -> &[O]

fn needed(&self) -> Option<Needed>

fn apply<'b, C, CO, E>(
    &'b self,
    combinator: C
) -> Result<Option<CO>, Err<&'b [O], E>> where
    O: 'b,
    C: Fn(&'b [O]) -> IResult<&'b [O], CO, E>, 

Loading content...

Provided methods

fn fill_apply<'b, C, CO, E>(
    &'b mut self,
    combinator: C
) -> Result<Option<CO>, FillApplyError<&'b [O], E>> where
    C: Fn(&'b [O]) -> IResult<&'b [O], CO, E>, 

Loading content...

Implementors

impl<R: Read> StreamBuf<u8> for ReadStreamBuf<R>[src]

fn fill_apply<'b, C, CO, E>(
    &'b mut self,
    combinator: C
) -> Result<Option<CO>, FillApplyError<&'b [O], E>> where
    C: Fn(&'b [O]) -> IResult<&'b [O], CO, E>, 
[src]

Loading content...