Module rustdds::serialization [−][src]
Expand description
Helpers for (De)serialization and definitions of (De)serializer adapters
Modules
DeserializerAdapter is used to fit serde Deserializer implementations and DataReader together. DataReader cannot assume a specific serialization format, so it needs to be given as a parameter.
Structs
This type adapts CdrDeserializer (which implements serde::Deserializer) to
work as a DeserializerAdapter
. CdrDeserializer cannot directly implement
the trait itself, because CdrDeserializer has the type parameter BO open,
and the adapter needs to be bi-endian.
This type adapts CdrSerializer
(which implements
serde::Serializer
) to work as a SerializerAdapter
.
CdrSerializer
cannot directly implement the trait itself, because
CdrSerializer
has the type parameter BO open, and the adapter needs to
be bi-endian.
CDR deserializer. Input is from &u8, since we expect to have the data in contiguous memory buffers.
Parameter W is an io::Write
that would receive the serialization
Parameter BO is byte order: LittleEndian
or BigEndian
Enums
Defines big-endian serialization.
Defines little-endian serialization.