Topologically defined classes of commutative rings