[−][src]Struct opcua_server::prelude::NotificationMessage
Fields
sequence_number: u32publish_time: DateTimenotification_data: Option<Vec<ExtensionObject>>Implementations
impl NotificationMessage[src]
pub fn data_change(
sequence_number: u32,
publish_time: DateTime,
data_change_notifications: Vec<MonitoredItemNotification>,
event_notifications: Vec<EventFieldList>
) -> NotificationMessage[src]
sequence_number: u32,
publish_time: DateTime,
data_change_notifications: Vec<MonitoredItemNotification>,
event_notifications: Vec<EventFieldList>
) -> NotificationMessage
Create a notification message which contains data change AND / OR events. Calling this with neither will panic. Notification data can have up to 2 elements to covers the case in table 158 where a subscription contains monitored items for events and data.
pub fn status_change(
sequence_number: u32,
publish_time: DateTime,
status: StatusCode
) -> NotificationMessage[src]
sequence_number: u32,
publish_time: DateTime,
status: StatusCode
) -> NotificationMessage
Create a status change notification message
pub fn keep_alive(
sequence_number: u32,
publish_time: DateTime
) -> NotificationMessage[src]
sequence_number: u32,
publish_time: DateTime
) -> NotificationMessage
Create a keep-alive notification message
pub fn notifications(
&self,
decoding_limits: &DecodingLimits
) -> Option<(Vec<DataChangeNotification>, Vec<EventNotificationList>)>[src]
&self,
decoding_limits: &DecodingLimits
) -> Option<(Vec<DataChangeNotification>, Vec<EventNotificationList>)>
Extract notifications from the message. Unrecognized / unparseable notifications will be
ignored. If there are no notifications, the function will return None.
Trait Implementations
impl BinaryEncoder<NotificationMessage> for NotificationMessage[src]
fn byte_len(&self) -> usize[src]
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write, [src]
S: Write,
fn decode<S>(
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<NotificationMessage, StatusCode> where
S: Read, [src]
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<NotificationMessage, StatusCode> where
S: Read,
fn encode_to_vec(&self) -> Vec<u8>[src]
impl Clone for NotificationMessage[src]
fn clone(&self) -> NotificationMessage[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for NotificationMessage[src]
impl MessageInfo for NotificationMessage[src]
impl PartialEq<NotificationMessage> for NotificationMessage[src]
fn eq(&self, other: &NotificationMessage) -> bool[src]
fn ne(&self, other: &NotificationMessage) -> bool[src]
impl StructuralPartialEq for NotificationMessage[src]
Auto Trait Implementations
impl RefUnwindSafe for NotificationMessage
impl Send for NotificationMessage
impl Sync for NotificationMessage
impl Unpin for NotificationMessage
impl UnwindSafe for NotificationMessage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,