Rotary-piston machines or pumps with fluid ring or the like