pub struct RawRow {
pub data: Bytes,
}Expand description
Raw row data (not yet decoded).
Fields§
§data: BytesRaw column values.
Implementations§
Source§impl RawRow
impl RawRow
Sourcepub fn decode(
src: &mut impl Buf,
metadata: &ColMetaData,
) -> Result<Self, ProtocolError>
pub fn decode( src: &mut impl Buf, metadata: &ColMetaData, ) -> Result<Self, ProtocolError>
Decode a ROW token from bytes.
This function requires the column metadata to know how to parse the row. The row data is stored as raw bytes for later parsing.
Sourcepub fn decode_prefix(
src: &mut impl Buf,
metadata: &ColMetaData,
prefix_len: usize,
) -> Result<Self, ProtocolError>
pub fn decode_prefix( src: &mut impl Buf, metadata: &ColMetaData, prefix_len: usize, ) -> Result<Self, ProtocolError>
Decode only the first prefix_len columns of a ROW token, leaving src
positioned at the start of column prefix_len.
Used by the BLOB streaming path to decode the leading scalar columns of a row and stop at a trailing MAX column, whose PLP value is then streamed directly from the socket rather than buffered.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawRow
impl RefUnwindSafe for RawRow
impl Send for RawRow
impl Sync for RawRow
impl Unpin for RawRow
impl UnsafeUnpin for RawRow
impl UnwindSafe for RawRow
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