lance_io::utils

Function read_struct

Source
pub async fn read_struct<'m, M: Message + Default + 'static, T: ProtoStruct<Proto = M> + TryFrom<M, Error = Error>>(
    reader: &dyn Reader,
    pos: usize,
) -> Result<T>
Expand description

Read a Protobuf-backed struct at file position: pos.