pub trait MarkerStream {
    // Required methods
    fn mark(&mut self) -> usize;
    fn reset(&mut self);
    fn clear_buffer(&mut self);
}

Required Methods§

source

fn mark(&mut self) -> usize

reads will be cached. If the stream was marked prior to this call the current buffer will be discarded.

Returns the number of bytes that were discarded as a result of this operation

source

fn reset(&mut self)

Resets the stream previously marked position, if it is set. If the reader was not previously marked, this has no affect.

source

fn clear_buffer(&mut self)

Clears the current buffer dropping any values that have been cached.

Implementors§