and then , mirabile dictu , between the piers , leaping from wave to wave as it rushed at headlong speed , swept the strange schooner before the blast , with all sail set , and gained the safety of the harbour .