Expand description
Protobuf encodings for Rust types.
Structs§
- ArcEncoding
- A wrapper encoding for reference-counted data.
- Array
Field - A field encoder for fixed-sized arrays.
- Borrowed
CowField - An encoder for
Cow<'a, str>
orCow<'a, [u8]>
that createsCow::Borrowed
on read. - BoxEncoding
- A wrapper encoding for boxed data.
- Byte
Field - A field encoder for u8.
- Bytes
Field - A field encoder for byte streams.
- Derived
Encoding - An encoding derived by
mesh_derive
forT
. - Duration
Encoding - Protobuf-compatible encoding for
Duration
. - Fixed32
Field - A field encoder for fixed32 fields.
- Fixed64
Field - A field encoder for fixed64 fields.
- Ignore
Field - A field encoder for fields that should be ignored.
- Impossible
Field - A field and message encoder for fields that cannot be instantiated.
- Ipv6
Addr Field - A field encoder for an IPv6 address.
- MapField
- A field encoder for maps from
K
toV
, using encodersEK
andEV
. - Message
Encoding - A field encoding for message encoding implementations.
- Option
Field - A field encoder for
Option
. - Owning
CowField - An encoder for
Cow<'a, str>
orCow<'a, [u8]>
that createsCow::Owned
on read. - Resource
Field - A field encoder for types that can be converted to and from OS resource type
T
. - Serialized
Message Encoder - An encoder for
SerializedMessage
. - Signed
Varint Field - A field encoder for signed (zigzag encoded) varint fields.
- String
Field - A field encoder for strings.
- U128
Little Endian Field - A field encoder for u128.
- Varint
Field - A field encoder for varint fields.
- VecField
- A field encoder for
Vec
. - Zero
Copy Encoding - A field encoding for C-format structs.
Traits§
- Fixed
Number - A
FixedNumber
can be converted to a u32 or u64 type for use with fixed64 and fixed32 fields. - From
Number - A trait for converting a value to from u64 for use in varint encodings.
- ToNumber
- A trait for converting a value to a u64 for use in varint encodings.