pub struct EventCallback { /* private fields */ }
Expand description
A wrapper around an event callback that implements OnSubscriptionNotification
Implementations§
Trait Implementations§
Source§impl OnSubscriptionNotification for EventCallback
impl OnSubscriptionNotification for EventCallback
Source§fn on_event(&mut self, event_fields: Option<Vec<Variant>>, item: &MonitoredItem)
fn on_event(&mut self, event_fields: Option<Vec<Variant>>, item: &MonitoredItem)
Called for each received event.
Source§fn on_subscription_status_change(
&mut self,
notification: StatusChangeNotification,
)
fn on_subscription_status_change( &mut self, notification: StatusChangeNotification, )
Called when a subscription changes state on the server.
Source§fn on_data_value(&mut self, notification: DataValue, item: &MonitoredItem)
fn on_data_value(&mut self, notification: DataValue, item: &MonitoredItem)
Called for each data value change.
Auto Trait Implementations§
impl Freeze for EventCallback
impl !RefUnwindSafe for EventCallback
impl Send for EventCallback
impl Sync for EventCallback
impl Unpin for EventCallback
impl !UnwindSafe for EventCallback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> OnSubscriptionNotificationCore for T
impl<T> OnSubscriptionNotificationCore for T
Source§fn on_subscription_notification(
&mut self,
notification: NotificationMessage,
monitored_items: MonitoredItemMap<'_>,
)
fn on_subscription_notification( &mut self, notification: NotificationMessage, monitored_items: MonitoredItemMap<'_>, )
Called when a notification is received on a subscription.