(mut self, notif: messages::NotificationTopic)
| 156 | } |
| 157 | |
| 158 | pub fn notification(mut self, notif: messages::NotificationTopic) -> Builder<S, I, O> { |
| 159 | self.notifications.push(notif); |
| 160 | self |
| 161 | } |
| 162 | |
| 163 | /// Subscribe to notifications for the given `topic`. The handler |
| 164 | /// is an async function that takes a `Plugin<S>` and the |