This would be military law. In specific, the Uniform Code of Military Justice is the foundation of all military law for US armed forces. This lays out the way that offenses and trials will be handled against those who are serving in an armed capacity.