Module encode

Module encode 

Source
Expand description

Encoding DBN and Zstd-compressed DBN files and streams. Encoders implement the EncodeDbn trait.

Re-exports§

pub use self::csv::Encoder as CsvEncoder;
pub use self::dbn::Encoder as DbnEncoder;
pub use self::dbn::MetadataEncoder as DbnMetadataEncoder;
pub use self::dbn::RecordEncoder as DbnRecordEncoder;
pub use self::json::Encoder as JsonEncoder;
pub use self::dbn::AsyncEncoder as AsyncDbnEncoder;async
pub use self::dbn::AsyncMetadataEncoder as AsyncDbnMetadataEncoder;async
pub use self::dbn::AsyncRecordEncoder as AsyncDbnRecordEncoder;async
pub use self::json::AsyncEncoder as AsyncJsonEncoder;async

Modules§

csv
Encoding of DBN records into comma-separated values (CSV).
dbn
Encoding DBN records into DBN, Zstandard-compressed or not.
json
Encoding of DBN records into JSON lines.

Structs§

DynAsyncBufWriterasync
An object that allows for abstracting over compressed and uncompressed output with buffering.
DynAsyncWriterasync
An object that allows for abstracting over compressed and uncompressed output.
DynEncoder
An encoder whose Encoding and Compression can be set at runtime.
DynEncoderBuilder
Helper for constructing a DynEncoder.
DynWriter
Type for runtime polymorphism over whether encoding uncompressed or Zstd-compressed DBN records. Implements std::io::Write.

Constants§

ZSTD_COMPRESSION_LEVEL
The default Zstandard compression level used.

Traits§

AsyncEncodeRecordasync
Trait for async encoding of DBN records of a specific type.
AsyncEncodeRecordRefasync
Trait for async encoding of DBN of RecordRef records.
AsyncEncodeRecordTextExtasync
Async extension trait for text encodings.
DbnEncodable
Trait alias for Record, CsvSerialize, fmt::Debug, and JsonSerialize.
EncodeDbn
Trait for types that encode DBN records with a specific record type.
EncodeRecord
Trait for types that encode a DBN record of a specific type.
EncodeRecordRef
Trait for types that encode DBN records with mixed schemas.
EncodeRecordTextExt
Extension trait for text encodings.