Basically what is going on is that metric spaces are sequential:
Definition. A topological space $X$ is sequential if given $A \subseteq X$, $A$ is closed iff every limit of a (convergent) sequence consisting of points of $A$ is also an element of $A$.1
(Worded slightly differently, given any topological space, we can define the sequential closure, $\mathrm{cl}_{\text{seq}}(A)$, of some $A \subseteq X$ to be the smallest set $B \supseteq A$ which is closed under limits of (convergent) sequences. Then a topological space $X$ is sequenial iff $\overline{A} = \mathrm{cl}_{\text{seq}}(A)$ for each $A \subseteq X$.)
A nice fact about sequential spaces (completely analogous to what you have stated for metric spaces) is the following:
Fact. If $X$ is a sequential space, and $Y$ an arbitrary topological space, then a function $f : X \to Y$ is continuous iff given any (convergent) sequence $\langle x_n \rangle_{n \in \mathbb{N}}$ and any limit $x$ of $\langle x_n \rangle_{n \in \mathbb{N}}$, we have that $f(x)$ is a limit of the sequence $\langle f(x_n) \rangle_{n \in \mathbb{N}}$ in $Y$.
So if you have a sequential space $X$, then just knowing the families of the form $$L(\langle x_n \rangle_{n}) := \{ x \in X : \langle x_n \rangle_{n} \rightarrow x \}$$ is enough to determine
- the closed sets (these are exactly the subsets $A$ such that $L(\langle x_n \rangle_{n}) \subseteq A$ for every sequence $\langle x_n \rangle_{n}$ of points of $A$); and
- which function with domain $X$ are continuous (these are exactly the functions $f$ such that $\langle f(x_n) \rangle_{n} \rightarrow f(x)$ where $x \in L(\langle x_n \rangle_{n})$).
In this way, the convergent sequences (and their limits) in a sequential space $X$ completely characterise the closed sets (and therefore also the underlying topology) of $X$ and the continuous functions from $X$.
We also have the following nice implications:
$$\text{metric} \Rightarrow \text{first-countable} \Rightarrow \text{sequential}$$ (and, as a bonus, neither implication reverses).
1I am not assuming the spaces are Hausdorff, so sequences can have multiple limits. Of course, metric spaces are Hausdorff.