pub fn read_struct_from_buf<M: Message + Default, T: ProtoStruct<Proto = M> + TryFrom<M, Error = Error>>( buf: &Bytes, ) -> Result<T>
Read a Protobuf-backed struct from a buffer.