Mixing transformations on metric spaces