What is the meter in the following excerpt from “Jabberwocky” by Lewis Carroll?

'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe