RowDecoder

Trait RowDecoder 

Source
pub trait RowDecoder<'a> {
    type Output;

    // Required method
    fn decode_row(&mut self, row: BinaryRowPayload<'a>) -> Result<Self::Output>;
}
Expand description

Trait for decoding a single row from raw bytes

Implementations can maintain state and decode rows into their own structures

Required Associated Types§

Source

type Output

The output type produced by decoding a row

Required Methods§

Source

fn decode_row(&mut self, row: BinaryRowPayload<'a>) -> Result<Self::Output>

Decode a single row from byte slice

§Arguments
  • row - The raw row data to decode
§Returns
  • Ok(Self::Output) - Successfully decoded row
  • Err(Error) - Decoding failed

Implementors§