I also agree w/ the advise given above about setting boundaries. I do have to say what does this look like thru the eyes of a 2 yo? They do understand basic emotions. What will this situation b like when your child asks questions about what is going on? Where's dad? When is he coming back? Why are you sad? My children, 8 yo & under can pick up on my emotions VERY quickly. So please think of the consequences for your child...even if a divorce is followed through.
Temper tantrum are very typical & yes you handled that correctly. Their not easy. We had one child we had to physically hold down. Ugh! I read read that all tantrums sound the same. Anger, frustration being voiced even physically shown & then it reaches a pinnacle & they come down from them. Their screams change to genuine cries of sorrow & they seek comfort. Does your child's tantrums set your H off? I know sometimes for me they did & I had to physically leave & let my H handle it. For some reason tantrums would make me angry.
I would seek some counseling even if it's legal counseling. If he wants a divorce will he be able to cover alimony & child support or do you think he'd try to skip on it? What usually brings him back home? What is the feeling like when he returns? These are all things a good counselor can help you sort thru. Find a good one; be picky & get one your comfortable w/ bec some topics might be uncomfortable to begin with. They are worth their weight in gold if they're good.
Keep in touch & tell us how things go. You have a lot on your plate being mom, dad & wife so be kind to yourself