In metric spaces, we have that limits commute with continuous functions.
In Hausdorff spaces, the limits of nets are always unique.
Seemingly the second fact is necessary for the proof of the first. However, it is not clear to me that metric structure is necessary for the proof of the first either (for example, why would uniform structure not be sufficient). This might, however, just be a result of the fact that I don't understand the concept of limit very well in spaces more general than metric spaces.
Question: What is the most general type of space for which a function is continuous if and only if it commutes with the limits of sequences?
Somewhere strictly between Hausdorff and metrizable spaces?
(Note: I'm very surprised that this question seems not to be a duplicate -- I could not find an equivalent question or the answer when Googling. If you know where to find the answer, please just close the question without downvoting and comment with the link.)
Background: Inspired by this question, in which an elegant proof using this property is given. Naturally I am curious to see the full generality to which this proof can be extended.