contestada

Which type of figurative language is used in this line from the poem?
While I nodded, nearly napping, suddenly there came a tapping