pub enum RawValue<'p> {
Unsigned(u64),
Signed(i64),
Float(f64),
Bytes(Cow<'p, [u8]>),
}Expand description
A value exactly as encoded in the packet.
Variants§
Unsigned(u64)
An unsigned integer field.
Signed(i64)
A signed integer field.
Float(f64)
A float field.
Bytes(Cow<'p, [u8]>)
A binary or string field. Borrowed from the packet when the read was byte-aligned.
Implementations§
Trait Implementations§
impl<'p> StructuralPartialEq for RawValue<'p>
Auto Trait Implementations§
impl<'p> Forget for RawValue<'p>
impl<'p> Freeze for RawValue<'p>
impl<'p> Move for RawValue<'p>
impl<'p> RefUnwindSafe for RawValue<'p>
impl<'p> Send for RawValue<'p>
impl<'p> Sync for RawValue<'p>
impl<'p> Unpin for RawValue<'p>
impl<'p> UnsafeUnpin for RawValue<'p>
impl<'p> UnwindSafe for RawValue<'p>
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