> like the truck driver in a big curve slightly deviating out of his lane and "pushing" me dangerously close to the median strip for example
This is a situation that you simply shouldn’t put yourself in. There is no reason to ever drive right next to a large vehicle, on either side, except for very short periods when overtaking them on a straight road.