Trait markable_reader::MarkerStream
source · pub trait MarkerStream {
// Required methods
fn mark(&mut self) -> usize;
fn reset(&mut self);
fn clear_buffer(&mut self);
}Required Methods§
sourcefn mark(&mut self) -> usize
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
sourcefn reset(&mut self)
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.
sourcefn clear_buffer(&mut self)
fn clear_buffer(&mut self)
Clears the current buffer dropping any values that have been cached.