Crate rw_builder

Source
Expand description

rw-builder provides a convenient way to build std::io::Readers and std::io::Writers by chaining transformations. Since readers and writers are defined simultaneously through the same builder they can be used as inverses of each other.

Structs§

BincodeBuilder
Type returned by the bincode function on the RwBuilder trait. It is itself not an RwBuilder so can’t be chained further. This is why we call it a sink.
BufferedBuilder
Type returned by the buffered function on the RwBuilder trait. It is itself an RwBuilder so can be chained further.
Compression
When compressing data, the compression level can be specified by a value in this struct.
CompressionBuilder
Type returned by the deflate, gz and zlib functions on the RwBuilder trait. It is itself an RwBuilder so can be chained further.
CrcBuilder
Type returned by the crc function on the RwBuilder trait. It is itself an RwBuilder so can be chained further, although this is an uncommon scenario
FileBuilder
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.
ProcessBuilder
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.
TcpStreamBuilder
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 an RwBuilder, but can’t be created through one. This is why we call it a source.

Traits§

AdhocWriter
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§

ChaCha20Builder
The type returned by the chacha20 function in the RwBuilder trait
ChaCha20Key
The key type for the chacha20 cipher
ChaCha20Nonce
The nonce type for the chacha20 cipher
Salsa20Builder
The type returned by the salsa20 function in the RwBuilder trait
Salsa20Key
The key type for the salsa20 cipher
Salsa20Nonce
The nonce type for the salsa20 cipher