Diffusion membrane for gas reaction or separation