Rust Repair

Guys when exactly is a body part considered a lost cause? What type of rust is considered a death sentence for a car?