Trait buf_redux::strategy::ReadStrategy [] [src]

pub trait ReadStrategy: Default + Debug {
    fn should_read(&self, buffer: &Buffer) -> bool;
}

Trait for types which BufReader can consult to determine when it should read more data into the buffer.

Required Methods

Returns true if the buffer should read more data, false otherwise.

Implementors