use of toroidal ring in hair dryer safety plug
The coil forms a transformer with the Hot and Neutral.  When the currents in the H and N are the same there is no output from the coil.  If the difference in current is a little as 5 ma the SSC will detect an output and open the switching contacts.