In my use case I would like to know which pattern was matched. Locally I extended the Handler type to also pass the pattern and I tweaked node to have a pattern field that contains the pattern to match.
Is this something that you would find useful to add? I would be happy to issue a PR if so.