Expand description
Library to read and write protocol buffers data.
Re-exports
pub use stream::CodedInputStream;
pub use stream::CodedOutputStream;
pub use stream::wire_format;
pub use error::ProtobufResult;
pub use error::ProtobufError;
Modules
Lazily initialized data.
Used in generated code.
Reflection implementation for protobuf types.
Functions used by generated protobuf code.
Should not be used by programs written by hands.
Structs
Cached size field used in generated code.
It is always equal to itself to simplify generated code.
(Generated code can use
#[derive(Eq)]
).Wrapper around vector to avoid deallocations on clear.
Like
Option<T>
, but keeps the actual element on clear
.Like
Option<Box<T>>
, but keeps the actual element on clear
.Enums
Traits
anything that can be cleared
Trait implemented for all generated structs for protobuf messages.
Also, generated messages implement
Clone + Default + PartialEq
Trait implemented by all protobuf enum types.
Functions
Parse message from byte array.
Parse message from reader.
Parse stops on EOF or when error encountered.
parse_length_delimited_fromDeprecated
Parse length-delimited message from stream.
parse_length_delimited_from_bytesDeprecated
Parse length-delimited message from bytes.
parse_length_delimited_from_readerDeprecated
Parse length-delimited message from
Read
.