Preheat the oven to 350F.
Pulse the chocolate wafers in a food processor until finely ground, then mix with the melted butter and salt until sandy.
Press the mixture firmly into a 9-inch pie plate, using a measuring cup to pack it down.
Bake the crust for 10 minutes, then cool completely on a wire rack.
Simmer 1 inch of water in a saucepan over medium-low heat.
Whisk the eggs and sugar in a heatproof bowl over the simmering water until pale and thick (160F), about 8-10 minutes.
Beat the hot egg mixture with a mixer for 4-5 minutes until cooled and ribbony.
Melt the butter, cream, and chocolate in another bowl over the simmering water until smooth.
Stir the vanilla, rum, and espresso powder into the melted chocolate mixture.
Fold the chocolate mixture into the whipped eggs until just combined.
Pour the filling into the cooled crust and refrigerate for at least 6 hours or overnight.
Beat the cold cream with powdered sugar and vanilla until stiff peaks form.
Top the chilled pie with the whipped cream and chocolate shavings.
Let stand at room temperature for 15-20 minutes before serving.