#[repr(u32)]pub enum WireType {
Varint = 0,
Fixed64 = 1,
Variable = 2,
Fixed32 = 5,
MeshMessage = 6,
Resource = 7,
}
Expand description
The protobuf wire type.
Variants§
Varint = 0
Variable-length integer.
Fixed64 = 1
Fixed 64-bit value.
Variable = 2
Variable-length byte buffer.
Fixed32 = 5
Fixed 32-bit value.
MeshMessage = 6
Mesh extension: just like Variable but prefixed with two varints:
- The number of ports used by the message.
- The number of resources used by the message.
Resource = 7
Mesh extension. Consumes the next resource.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)