what to do when horny and on pelvic rest

help got doctors order for no sex rest of my pregnancy.  i cant masturbate either.