Mentally Healing from Physical Injury

Getting injured sucks. So how do you keep the feelings of anger, frustration, sadness, isolation, and lack of motivation at bay while you recover?