pub struct FlushOn(pub u8);
Expand description
Flush the buffer if it contains the given byte.
Only scans the buffer after reading. Searches from the end first.
Tuple Fields
0: u8
Trait Implementations
sourceimpl WriterPolicy for FlushOn
impl WriterPolicy for FlushOn
sourcefn after_write(&mut self, buf: &Buffer) -> FlushAmt
fn after_write(&mut self, buf: &Buffer) -> FlushAmt
Return
true
if the buffer should be flushed after reading into it. Read moreAuto Trait Implementations
impl RefUnwindSafe for FlushOn
impl Send for FlushOn
impl Sync for FlushOn
impl Unpin for FlushOn
impl UnwindSafe for FlushOn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more