Struct buf_redux::strategy::FlushOn
[−]
[src]
pub struct FlushOn(pub u8);
Flush the buffer if it contains the given byte.
Only scans the buffer after reading. Searches from the end first.
Trait Implementations
impl Debug for FlushOn
[src]
impl Default for FlushOn
[src]
impl FlushStrategy for FlushOn
[src]
fn flush_before(&self, buf: &Buffer, incoming: usize) -> bool
[src]
Same as WhenFull
.
fn flush_after(&self, buf: &Buffer) -> bool
[src]
Return true
if the buffer should be flushed after reading into it. Read more