Skip to content

Glossary: Software Design Patterns in Rust

Listener

Also written: listeners

A function or closure that wants to hear about an event and is called when it's emitted. send_email and log_sale are listeners.

Where the book teaches it

Related terms

ObserverEvent bus