; (2) pretrial restraint in accordance with Rule for Courts-Martial 304 (as set forth in the Manual for Courts-Martial, 2019 edition, or any successor rule); or (3) pretrial confinement in accordance with Rule for Courts-Martial 305 (as set forth in the Manual for Courts-Martial, 2019 edition, or any successor rule). (m) Delivery to certain persons A physical and electronic copy of any military court protective order shall be provided, as soon as practicable after issuance, to the following: (1) The person or persons protected by the protective order or to the guardian of such a person if such person is under the age of 18 years. (2) The person subject to the protective order. (3) To such commanding officer in the chain of command of the person subject to the protective order as the President shall prescribe for purposes of this section. (n) Definitions In this section: (1) Contact The term contact includes contact in person or through a third party, or through gifts. (2) Communication The term communication includes communication in person or through a third party, and by telephone or in writing by letter, data fax, or other electronic means. (3) Covered sex or domestic violence offense The term covered sex or domestic violence offense means— (A) an alleged sex-related offense (as defined in section 1044e(h))