I'm sorry things didn't work out and that you are disappointed.
One of the problems with depression is we tend to interpret everything that happens as something that's negative about ourselves. Please try to not take anything that happened personally. There are several reasons why you shouldn't.
You really didn't know him very well. While he did tell you some of what he'd been through, he chose not to "let you in" and tell you everything. He wouldn't really let you be on the team.
Just my opinion, but I think it's best to be non-judgemental on things like this. And avoid the labeling that might be easy to do. Which of us can ever know what's behind someone's relationship and intimacy issues? Maybe some kind of strict religious background or a traumatic event. Wonder if there was some history of abuse when he was a child? I can see how a person could struggle with that for their whole life, want to be in a close relationship, but have so many issues that they just can't do it. You don't really know. So there's no reason to think something negative about yourself.
I think Karen is right - that this was an emotionally one-sided relationship. Please don't let it get you down. Stay positive and something positive will come back to you.