What happens when your car is totaled?

What happens when your car is totaled?