A characterization of limiting functions arising in mod-* convergence