Expand description
rw-builder provides a convenient way to build std::io::Read
ers and
std::io::Write
rs by chaining transformations. Since readers and writers
are defined simultaneously through the same builder they can be used as
inverses of each other.
Structs§
- Bincode
Builder - Type returned by the
bincode
function on theRwBuilder
trait. It is itself not anRwBuilder
so can’t be chained further. This is why we call it a sink. - Buffered
Builder - Type returned by the
buffered
function on theRwBuilder
trait. It is itself anRwBuilder
so can be chained further. - Compression
- When compressing data, the compression level can be specified by a value in this struct.
- Compression
Builder - Type returned by the
deflate
,gz
andzlib
functions on theRwBuilder
trait. It is itself anRwBuilder
so can be chained further. - CrcBuilder
- Type returned by the
crc
function on theRwBuilder
trait. It is itself anRwBuilder
so can be chained further, although this is an uncommon scenario - File
Builder - Type for building readers and writers on top of a file handle.
It is itself an
RwBuilder
, but can’t be created through one. This is why we call it a source. - Process
Builder - Type for building readers and writers on top of a process handle.
It is itself an
RwBuilder
, but can’t be created through one. This is why we call it a source. - TcpStream
Builder - Type for building readers and writers on top of a connected TCP socket.
It is itself an
RwBuilder
, but can’t be created through one. This is why we call it a source. - VecBuilder
- Type for building readers and writers on top of a
Vec
in memory. It is itself anRwBuilder
, but can’t be created through one. This is why we call it a source.
Traits§
- Adhoc
Writer - Creates a writer and writes the string to it
- Constructor
- Convenience trait for creating a new encoder/decoder builder
- RwBuilder
- The trait that can construct readers and writers, but also has chainable functions to create more complex builders
- SerDe
- Trait to wrap serialization and deserialization functionality behind uniform load and save functions
Type Aliases§
- ChaCha20
Builder - The type returned by the
chacha20
function in theRwBuilder
trait - ChaCha20
Key - The key type for the chacha20 cipher
- ChaCha20
Nonce - The nonce type for the chacha20 cipher
- Salsa20
Builder - The type returned by the
salsa20
function in theRwBuilder
trait - Salsa20
Key - The key type for the salsa20 cipher
- Salsa20
Nonce - The nonce type for the salsa20 cipher