I do remember and it was when I was still a student, doing my rotations. I didn't take it personal then, I understood the position the pt was in, but I did let him know that he had been rude and offensive without a valid reason, that I was there to help him and not to be his punching bag... i didn't say that literally but you guys get the point.
Nowadays, (still a student nurse but getting paid), I do the same... let them know that there is NO reason to treat you like that, bad languange will not be tolerated, if they want respect they also should respect others (not only you but also other pts), when you are done with your speech ask them in a nice way if there's anything you can do for them. Sometimes that will bring their guard down sometimes they just keep being...well , pts, then is when you turn your back, make your little notations in your chart, and go on with your life
Don't let anyone bring you down, not even those you are helping