pub fn encode_wal_segment_envelope_zstd(
envelope: &WalSegmentEnvelope,
) -> Result<Vec<u8>, EnvelopeCodecError>Expand description
Encodes a WAL envelope as its durable zstd-compressed CBOR representation.
Encoding fails when the version is unsupported, the in-memory checksum is stale, CBOR serialization fails, or zstd cannot compress the document. See WAL segment rules.