lance_io::utils

Function read_struct_from_buf

Source
pub fn read_struct_from_buf<M: Message + Default, T: ProtoStruct<Proto = M> + TryFrom<M, Error = Error>>(
    buf: &Bytes,
) -> Result<T>
Expand description

Read a Protobuf-backed struct from a buffer.