It depends what type of electrical failure. But for sure to have a total blackout is really something rare. The A330 is equiped with quadriplex elec systems all independent of each other. On rare occasions a total black out can occur if all engines fail. At this point a RAT is deployed to give limited elec to hydraulics and minimum avionics.