[−][src]Module buf_redux::policy
Types which can be used to tune the behavior of BufReader
and BufWriter
.
Some simple policies are provided for your convenience. You may prefer to create your own types and implement the traits for them instead.
Structs
DoRead | Flag for |
FlushAmt | Flag for |
FlushAtLeast | Flush the buffer if it contains at least the given number of bytes. |
FlushExact | Only ever flush exactly the given number of bytes, until the writer is empty. |
FlushOn | Flush the buffer if it contains the given byte. |
FlushOnNewline | Flush the buffer if it contains a newline ( |
MinBuffered | A policy for |
StdPolicy | Default policy for both |
Traits
ReaderPolicy | Trait that governs |
WriterPolicy | A trait which tells |