I don't know of any way to tell if a trout is going to survive but there are some precautions you may take; don't use tippets smaller then 7X, play the fish quickly, keep it in the water when releasing the hook, take a photo if you like, but keep it in the water, don't play fish to exhaustion. The last item is a really big deal to me, if you have to revive a fish after catching it, then you aren't playing the fish properly and are also playing it too long. When I unhook a fish, I want it to immediately swim off on its own. If the fish doesn't swim off on its own then I know it is stressed and needs to be revived, which means I played it too long or took it out of the water.
Keep in mind that in a fishes environment the fish is weightless and breathing water, taking a fish out off the water is like me dunking you in the water and holding you under, now I wouldn't do that but that's the reality. None of us has been in space but think about how it feels when you are swimming for half a day and then get out of the water your legs feel like they have lead weights on them and everything feels out of sync. It's got to feel much worse to a fish.