Rigidity in topological dynamics