Struct buf_redux::policy::FlushOnNewline [−][src]
pub struct FlushOnNewline;
Flush the buffer if it contains a newline (\n
).
Equivalent to FlushOn(b'\n')
.
Trait Implementations
impl Debug for FlushOnNewline
[src]
impl Debug for FlushOnNewline
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for FlushOnNewline
[src]
impl Default for FlushOnNewline
fn default() -> FlushOnNewline
[src]
fn default() -> FlushOnNewline
Returns the "default value" for a type. Read more
impl WriterPolicy for FlushOnNewline
[src]
impl WriterPolicy for FlushOnNewline
fn after_write(&mut self, buf: &Buffer) -> FlushAmt
[src]
fn after_write(&mut self, buf: &Buffer) -> FlushAmt
Return true
if the buffer should be flushed after reading into it. Read more
fn before_write(&mut self, buf: &mut Buffer, incoming: usize) -> FlushAmt
[src]
fn before_write(&mut self, buf: &mut Buffer, incoming: usize) -> FlushAmt
Return FlushAmt(n > 0)
if the buffer should be flushed before reading into it. If the returned amount is 0 or greater than the amount of buffered data, no flush is performed. Read more
Auto Trait Implementations
impl Send for FlushOnNewline
impl Send for FlushOnNewline
impl Sync for FlushOnNewline
impl Sync for FlushOnNewline