Module mesh::payload

source ·

Modules§

  • Types to support writing to a contiguous byte buffer.
  • Protobuf encodings for Rust types.
  • Provides an Option-like type for constructing values in place.
  • Type-erased protobuf message support.
  • Encoding support for protobuf oneof fields, which are derived from Rust enums.
  • Support for encoding Prost types as Mesh types.
  • Tools to encode and decode protobuf messages.
  • Definitions for describing the format protobuf messages. These can be used to generate .proto files that are binary compatible with the associated Rust types.
  • Table-based message encoding and decoding.
  • Transparent encoding for types that are a wrapper around another type.

Macros§

Structs§

  • Wrapper type to easily support custom mesh encoding.
  • A decoding error.
  • A serialized message, consisting of binary data and a list of resources.
  • A timestamp representing a point in UTC time with nanosecond resolution.

Enums§

  • An empty resources type, used when an encoding does not require any external resources (such as files or mesh channels).

Traits§

  • Trait for collections that can be extended by a slice of T: Copy.
  • Associates the default encoder/decoder type for converting an object to/from protobuf format.
  • Trait for types implementing Protobuf and having an associated protobuf message description.
  • Marker trait indicating that an encoded value of T can be decoded as a Self.
  • The FieldEncode trait provides a field decoder for type T.
  • The FieldEncode trait provides a field encoder for type T.
  • The MessageEncode trait provides a message decoder for type T.
  • The MessageEncode trait provides a message encoder for type T.
  • Methods for decoding a packed field.
  • Encoder methods for writing packed fields.
  • Trait for types that can be encoded and decoded as a protobuf message.
  • Extension trait to add type context to Error.
  • Marker trait indicating that an encoded value of Self can be decoded as a T.

Functions§

  • Decodes a message with its default encoding.
  • Encodes a message with its default encoding.
  • Merges message fields into an existing message.

Type Aliases§

Derive Macros§