Crate gel_protogen

Crate gel_protogen 

Source

Modules§

prelude

Macros§

declare_meta
declare_type
This macro is used to declare serialization traits for a type.
encoder_for_array
Generate encoders for array types from slices, arrays, and iterator-generating functions. Note that because we need to consume the iterator and we may need to iterate multiple times for measurement before serialization, we implement encoding for a function returning an iterator.
match_message
Perform a match on a message.
message_group
protocol
Generates a protocol definition from a Rust-like DSL.

Structs§

Array
A count-prefixed array.
ArrayIter
ZTArray, Array, and RestArray Iterator for values of type T.
BufWriter
Length
Rest
Represents the remainder of data in a message.
RestArray
A rest array: consumes the remainder of the buffer.
StructBuffer
A buffer that accumulates bytes of sized structs and feeds them to provided sink function when messages are complete. This buffer handles partial messages and multiple messages in a single push.
Uuid
A Universally Unique Identifier (UUID).
ZTArray
A zero-terminated array.

Enums§

Encoded
An encoded row value.

Traits§

ArrayExt
Shared trait for all array types.

Type Aliases§

LString
A length-prefixed string.
RestString
A string which consumes the remainder of the buffer.
ZTString
A zero-terminated string.