What is defeat? 2

What is defeat?

When you are facing failure you tend to loose confidence in yourself. How far it is good for your mind and soul to bear such thoughts?