had just/had hardly...when
I see very little difference in these constructions. Perhaps the “Hardly ...”. versions place a little more emphasis on the writer (or speaker) than on the rain or train but that is probably my personal reaction; others may disagree.