You do not need to do anything special to trigger a Self ability. When you use it, it affects you.
You regain all of your hits after you finish resting. You must already be resting or begin resting immediately afterward to receive the effect, and it ends if your rest is interrupted.