Despair does not mean a specific situation.
When a person encounters a desperate situation, he abandons the future. Meanwhile, he would close the door to the future on his own. It gets rid of all the hopes which he might grasp if he never gave up.
This is the true despair.
Despair is in your mind. Never accept despair, and you need not despair.