Crate pb_jelly

Crate pb_jelly 

Source

Re-exports§

pub use crate::reflection::Reflection;

Modules§

erased
Blanket-implemented erased typings for the types used throughout the serialization portion of this crate, to allow for implementation of the proto message field reflection API.
extensions
helpers
reflection
varint
wire_format

Structs§

CopyWriter
A wrapper around a Write which copies all Lazy data into the underlying Writer.
FieldDescriptor
Describes a field within a message. Provides rudimentary support for the proto field reflection API, with the intention of being able to serialize or introspect fields individually without having knowledge of the structure of the specific message itself. For more info, see: https://developers.google.com/protocol-buffers/docs/techniques https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto
Fixed32
Fixed64
Lazy
A wrapper around a PbBuffer, which implements Message.
MessageDescriptor
Trait implemented by all the messages defined in proto files. Provides rudimentary support for message descriptor, mostly as a way to get the type name for a given message rather than trying to implement the full reflection API. For more info, see: https://developers.google.com/protocol-buffers/docs/techniques https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto
OneofDescriptor
Describes a oneof.
Sfixed32
Sfixed64
Signed32
Signed64
Unrecognized

Enums§

Label

Traits§

ClosedProtoEnum
Trait implemented by enums which are generated with the err_if_default option. Note that these enums are not forward compatible, since they do not handle unrecognized enum variants (and will fail to deserialize instead).
Message
Trait implemented by all the messages defined in proto files and base datatypes like string, bytes, etc. The exact details of this trait is implemented for messages and base types can be found at - https://developers.google.com/protocol-buffers/docs/encoding
OpenProtoEnum
Trait implemented by enums to help with serialization and deserialization.
PbBuffer
A stand-in trait for any backing buffer store. PbBuffers are expected to own references to the data they reference, and should be cheap (constant-time) to clone.
PbBufferReader
All concrete types which are used for deserialization should implement PbBufferReader, which includes functions to convert to and from PbBuffer.
PbBufferWriter
All concrete types used for serialization should implement PbBufferWriter in order to support serializing Lazy fields without copies.
ProtoEnum
Marker trait for proto enums.

Functions§

ensure_split
ensure_wire_format
skip
type_is
If B1 and B2 are the same type, returns a function to cast B1 -> B2; otherwise None. Used to implement PbBuffer casting.
unexpected_eof