pub enum WireType {
Varint = 0,
Fixed64 = 1,
LengthDelimited = 2,
StartGroup = 3,
EndGroup = 4,
Fixed32 = 5,
}
Expand description
All supported “wire types” are listed in this enum.
Variants§
Varint = 0
Variable-length integer
Fixed64 = 1
32-bit field (e. g. fixed64
or double
)
LengthDelimited = 2
Length-delimited field
StartGroup = 3
Groups are not supported in rust-protobuf
EndGroup = 4
Groups are not supported in rust-protobuf
Fixed32 = 5
32-bit field (e. g. fixed32
or float
)
Implementations§
Trait Implementations§
impl Copy for WireType
impl Eq for WireType
impl StructuralPartialEq for WireType
Auto Trait Implementations§
impl Freeze for WireType
impl RefUnwindSafe for WireType
impl Send for WireType
impl Sync for WireType
impl Unpin for WireType
impl UnwindSafe for WireType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more