Trait OnSubscriptionNotificationCore

Source
pub trait OnSubscriptionNotificationCore: Send + Sync {
    // Required method
    fn on_subscription_notification(
        &mut self,
        notification: NotificationMessage,
        monitored_items: MonitoredItemMap<'_>,
    );
}
Expand description

A trait for handling subscription notifications. Typically, you will want to use OnSubscriptionNotification instead, which has a blanket implementation for this trait.

Required Methods§

Source

fn on_subscription_notification( &mut self, notification: NotificationMessage, monitored_items: MonitoredItemMap<'_>, )

Called when a notification is received on a subscription.

Implementors§