Module buf_redux::strategy
[−]
[src]
Types which can be used to tune the behavior of BufReader
.
Some simple strategies are provided for your convenience. You may prefer to create your own types and implement the traits for them instead.
Structs
AtEndLessThan |
A |
AtEndLessThan1k |
A |
FlushAtLeast |
Flush the buffer if it contains at least the given number of bytes. |
FlushAtLeast8k |
Flush the buffer if it contains at least |
FlushOn |
Flush the buffer if it contains the given byte. |
FlushOnNewline |
Flush the buffer if it contains a newline ( |
IfEmpty |
A |
LessThan |
A |
NeverMove |
A |
WhenFull |
Flush the buffer if there is no more headroom. Equivalent to the behavior or
|
Traits
FlushStrategy |
A trait which tells |
MoveStrategy |
Trait for types which |
ReadStrategy |
Trait for types which |
Type Definitions
DefaultFlushStrategy |
The default |
DefaultMoveStrategy |
The default |
DefaultReadStrategy |
The default |