Struct buf_redux::policy::FlushExact[][src]

pub struct FlushExact(pub usize);

Only ever flush exactly the given number of bytes, until the writer is empty.

Trait Implementations

impl Debug for FlushExact
[src]

Formats the value using the given formatter. Read more

impl Default for FlushExact
[src]

Returns the "default value" for a type. Read more

impl WriterPolicy for FlushExact
[src]

Flushes the buffer if there is not enough room to fit incoming bytes, but only when the buffer contains at least self.0 bytes.

Otherwise, calls Buffer::make_room()

Flushes the given amount if possible, nothing otherwise.

Auto Trait Implementations

impl Send for FlushExact

impl Sync for FlushExact