Function mode

Source
pub fn mode(p: &Process, state: &mut State) -> Result<GameMode, Error>