Expand description
Serialization for the databaseβs compact record codec.
Tuples place SEP between every pair of adjacent elements, while
sequences follow each elementβs separator state. Supported integer scalars
use big-endian bytes, and Json and Cbor delegate their payloads to
the corresponding self-describing format.
Re-exportsΒ§
use std::io::Write;πuse std::mem::replace;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse serde::ser;πuse tuwunel_core::Error;πuse tuwunel_core::Result;πuse tuwunel_core::debug::type_name;πuse tuwunel_core::err;πuse tuwunel_core::result::DebugInspect;πuse tuwunel_core::unhandled;π
StructsΒ§
- Cbor
- Wraps a value for CBOR encoding within the database codec.
- Interfix
- Finalizes a tuple prefix immediately after its trailing separator.
- Json
- Wraps a value for JSON encoding within the database codec.
- Separator
- Emits one record separator explicitly.
- Serializer π
- Stateful writer for the compact database record format.
ConstantsΒ§
- SEP
- Byte separating records in the compact database format.
FunctionsΒ§
- serialize
- Serializes a value into a caller-provided output buffer.
- serialize_
to - Serializes a value into a default-constructed output buffer.
- serialize_
to_ vec - Serializes a value into an owned byte vector.