Flagpoling at US/Canada border is not a rejection on your passport but just an administrative refusal issued by US CBP that you voluntarily decided to not enter the US in effect a U-turn back to the Canadian border. Has no impact on future entries to the US which would still be subject to the usual assessment.