Expand description
Library to read and write protocol buffers data.
Re-exports§
pub use crate::error::ProtobufError;
pub use crate::error::ProtobufResult;
Modules§
- Generated file from
google/protobuf/descriptor.proto
- Protobuf error type
- Utilities to support “extension” fields.
- JSON serialization and deserialization.
- Lazily initialized data. Used in generated code.
- Generated file from
google/protobuf/compiler/plugin.proto
- Reflection implementation for protobuf types.
- Functions used by generated protobuf code. Should not be used by programs written by hands.
- Generated file from
rustproto.proto
- Protobuf “text format” implementation.
- Implementations of
ProtobufType
for all types. - Generated code for “well known types”
- Serialization constants.
Structs§
- Cached size field used in generated code. It is always equal to itself to simplify generated code. (Generated code can use
#[derive(Eq)]
). - Buffered read with handy utilities.
- Buffered write with handy utilities
- Wrapper around vector to avoid deallocations on clear.
- Like
Option<T>
, but keeps the actual element onclear
. - Like
Option<Box<T>>
, but keeps the actual element onclear
. - Hold “unknown” fields in parsed message.
- Iterator over
UnknownFields
- Field unknown values.
- Iterator over unknown values
Enums§
- Unknown value.
- Reference to unknown value.
Constants§
- protobuf crate version
- This symbol can be referenced to assert that proper version of crate is used
Traits§
- anything that can be cleared
- Trait implemented for all generated structs for protobuf messages.
- Trait implemented by all protobuf enum types.
Functions§
- parse_
from_ bytes Deprecated Parse message from byte array. - parse_
from_ reader Deprecated Parse message from reader. Parse stops on EOF or when error encountered. - parse_
length_ delimited_ from Deprecated Parse length-delimited message from stream. - parse_
length_ delimited_ from_ bytes Deprecated Parse length-delimited message from bytes. - parse_
length_ delimited_ from_ reader Deprecated Parse length-delimited message fromRead
.