pub enum FieldValue<'a> {
Varint(u64),
Fixed64(u64),
Fixed32(u32),
Bytes(&'a [u8]),
}Expand description
A decoded field value (borrowed for length-delimited payloads).
Variants§
Varint(u64)
Wire type 0.
Fixed64(u64)
Wire type 1 (little-endian 64-bit).
Fixed32(u32)
Wire type 5 (little-endian 32-bit).
Bytes(&'a [u8])
Wire type 2 — string / bytes / embedded message / packed scalars.
Trait Implementations§
Source§impl<'a> Clone for FieldValue<'a>
impl<'a> Clone for FieldValue<'a>
Source§fn clone(&self) -> FieldValue<'a>
fn clone(&self) -> FieldValue<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for FieldValue<'a>
impl<'a> Debug for FieldValue<'a>
Source§impl<'a> PartialEq for FieldValue<'a>
impl<'a> PartialEq for FieldValue<'a>
impl<'a> Copy for FieldValue<'a>
impl<'a> Eq for FieldValue<'a>
impl<'a> StructuralPartialEq for FieldValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldValue<'a>
impl<'a> RefUnwindSafe for FieldValue<'a>
impl<'a> Send for FieldValue<'a>
impl<'a> Sync for FieldValue<'a>
impl<'a> Unpin for FieldValue<'a>
impl<'a> UnsafeUnpin for FieldValue<'a>
impl<'a> UnwindSafe for FieldValue<'a>
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