pub struct EventCallback { /* private fields */ }Expand description
This is a concrete implementation of OnSubscriptionNotification that calls a function
when an event occurs.
Implementations§
Source§impl EventCallback
impl EventCallback
Trait Implementations§
Source§impl OnSubscriptionNotification for EventCallback
impl OnSubscriptionNotification for EventCallback
Source§fn on_event(&mut self, events: &EventNotificationList)
fn on_event(&mut self, events: &EventNotificationList)
Called by the subscription after a
EventNotificationList. The notifications contained within
are individual EventFieldList structs filled from the select clause criteria from when the
event was constructed. The default implementation does nothing.Source§fn on_data_change(&mut self, _data_change_items: &[&MonitoredItem])
fn on_data_change(&mut self, _data_change_items: &[&MonitoredItem])
Called by the subscription after a
DataChangeNotification. The default implementation
does nothing.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