James Alexander Williams suggested in his patent, that his invention is not only suitable for fighting mice. Demonstrating true Texas hospitality [He was Texan], Williams recommended use of the handgun trap as a clever house alarm to be put in doors and windows.
Mousetrap patent US269766A
Mice being solitary creatures, a gun is the best bet to resolve that scourge.
Also, that’s a rat.