This is a curiosity question.
$M$ and $N$ are smooth manifolds.
A closed curve $x:[0,1] \to M$ is a smooth curve such that $x(0) = x(1)$.
A smooth map $f : M \to N$ is an embedding if for all $p \in M$ differential $D_p f$ is injective and $M \cong f(M)$ in topological sense, where $f(M)$ has a subspace topology.
It seems that in $\mathbb{R}^2$ every compact hypersurface can be represented by an image of some closed plane curve. Moreover, I can say that image of every closed curve which is also an embedding (assuming flat torus topology on $[0,1]$ i. e. 0 = 1) is a compact hypersurface of $\mathbb{R}^2$.
Are there any similar characteristic of compact hypersurface in $\mathbb{R}^d$ for $d > 2$
I am not interested in purely topological characteristics like finite subcover for each cover, or existence of converging subsequence for every sequence.
I was thinking about something like hypersurface $H$ is compact if and only if every maximal geodesic in $H$ is a closed curve and an embedding.