Any person creating an express trust for the benefit of any other person or persons may, by the terms of the trust, establish valid restraints on the voluntary and/or involuntary transfer of interests in the express trust by its beneficiaries, whether by way of anticipation or acceleration, assignment, hypothecation, or by virtue of legal process in judgment, execution, attachment, garnishment, bankruptcy, or otherwise.
R.I. Gen. Laws § 18-9.1-1