A rat trap is a trap designed to catch rats.
Rats are suspicious of new objects (especially objects that they've seen but not touched) and traps with only one entrance. If they see other rats have been trapped they may avoid the trap. Traps which do not address these issues are likely to catch only young, inexperienced rats, not the older ones.
Spring traps for large rodents such as rats or squirrels are powerful enough to break the animal's neck or spine. They may break human fingers as well, whereas an ordinary spring-based mousetrap is very unlikely to break a human finger. Rat spring traps may not be sensitive enough to spring when a mouse takes the bait.
A rat cage trap is a metal cage box-shaped device that is designed primarily to catch rats without killing them. Food bait (not poisoned) is put in the cage trap. When an animal enters the cage and moves toward the bait, the mechanism triggers and closes a door over the entry point. The animal is caught alive and without injury. The animal can be transported and released elsewhere or subsequently killed.
Glue traps are non-poisonous sticky glue spread over card boards and the like and kept in places rats frequent, which gets them stuck to it when they pass over it. The rat will subsequently die from dehydration and asphyxiation. A bait may also be placed on the cardboard to attract the rats.
Another form of non-lethal trap is one where the wires it is constructed of are cut and formed into a funnel shape directed into the body of the cage. This design is usually dome shaped with the funnel at the crown. Rats are extremely flexible and can push through the narrower opening into the cage, but cannot escape due to the ends of the wires poking them in the face. The advantage of this design is that it can catch more than one rat at a setting.
Other types of traps (as shown below) are designed to kill the animal.
Electronic rat traps detect the presence of a rodent via metal plates on the floor of the trap, then deliver a lethal dose of high-voltage electricity stepped up from batteries to several thousand volts. Some brands offer remote indication to tell you when the trap has operated. The Eliminator (South Africa) and Victor (US) are two brands of electronic rat traps.
A rat cage trap containing bread as bait.
A rat caught in a rat trap.
Size comparison between a rat trap (above) and a mousetrap (below).