pub enum WireType {
Varint,
SixtyFour,
LengthDelimited,
ThirtyTwo,
}
Expand description
WireType represents the different protocol buffers wire types.
Variants§
Varint
Varint is wire type 0. The payload is a single v64.
SixtyFour
SixtyFour represents wire type 1. The payload is a single u64.
LengthDelimited
LengthDelimited represents wire type 2. The payload depends upon how the system interprets the field number.
ThirtyTwo
ThirtyTwo represents wire type 5. The payload is a single u32.
Implementations§
Trait Implementations§
source§impl PartialEq for WireType
impl PartialEq for WireType
impl Copy for WireType
impl Eq for WireType
impl StructuralPartialEq for WireType
Auto Trait Implementations§
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