Crate diny_core

Source
Expand description

The core functionality of the diny framework.

See the main diny documentation for project status and general usage

Re-exports§

pub use deserializer::deserializer;
pub use deserializer::Deserialize;
pub use deserializer::Deserializer;
pub use serializer::serializer;
pub use serializer::Serialize;
pub use serializer::Serializer;

Modules§

backend
Types and traits implemented by backend formatters
buffer
Helper modules for implementing buffered serialization primitives
deserializer
Types used to support deserialization streams
io
Re-export of io related structures
serializer
Types used to suport serialization sinks
util
Helper modules that may be externally useful

Macros§

decode_chain
Starts decoding by calling the $dec expression, and converts the result to a PollDecodeStatus
decode_poll_chain
Continues decoding by first polling the $dec expression, and then calling the $chain closure with any resulting data, and finally converts the result to a PollDecodeStatus
decode_poll_fini
Finalizes decoding by polling the $dec expression, converts the final data by calling the $fini closure, and finally converts the result to a PollDecodeStatus
encode_chain
Starts encoding by calling the $enc expression, and converts the result to a PollEncodeStatus
encode_poll_chain
Continues encoding by first polling the $enc expression, and then calling the $chain expression, and finally converts the result to a PollEncodeStatus
encode_poll_fini
Finalizes encoding by polling the $enc expression, and converts the result to a PollEncodeStatus

Traits§

AsyncDeserialize
Deserialize a data structure asynchronously.
AsyncSerialization
Marker trait to denote that both AsyncSerialize and AsyncDeserialize are implemented for the type.
AsyncSerialize
Serialize a data structure asynchronously.

Derive Macros§

AsyncDeserializederive
Generate only async deserialization code
AsyncSerializationderive
Generate both async serialization and deserialization code
AsyncSerializederive
Generate only async serialization code