Struct opcua_server::events::event::BaseEventType
source · [−]pub struct BaseEventType { /* private fields */ }
Expand description
This corresponds to BaseEventType definition in OPC UA Part 5
Implementations
sourceimpl BaseEventType
impl BaseEventType
pub fn new_now<R, E, S, T, U>(
node_id: R,
event_type_id: E,
browse_name: S,
display_name: T,
parent_node: U
) -> Self where
R: Into<NodeId>,
E: Into<NodeId>,
S: Into<QualifiedName>,
T: Into<LocalizedText>,
U: Into<NodeId>,
pub fn new<R, E, S, T, U>(
node_id: R,
event_type_id: E,
browse_name: S,
display_name: T,
parent_node: U,
time: DateTime
) -> Self where
R: Into<NodeId>,
E: Into<NodeId>,
S: Into<QualifiedName>,
T: Into<LocalizedText>,
U: Into<NodeId>,
sourcepub fn add_property<T, R, S, U, V>(
&mut self,
event_id: &NodeId,
property_id: T,
browse_name: R,
display_name: S,
data_type: U,
value: V,
address_space: &mut AddressSpace
) where
T: Into<NodeId>,
R: Into<QualifiedName>,
S: Into<LocalizedText>,
U: Into<NodeId>,
V: Into<Variant>,
pub fn add_property<T, R, S, U, V>(
&mut self,
event_id: &NodeId,
property_id: T,
browse_name: R,
display_name: S,
data_type: U,
value: V,
address_space: &mut AddressSpace
) where
T: Into<NodeId>,
R: Into<QualifiedName>,
S: Into<LocalizedText>,
U: Into<NodeId>,
V: Into<Variant>,
Add a property to the event object
pub fn message<T>(self, message: T) -> Self where
T: Into<LocalizedText>,
pub fn source_node<T>(self, source_node: T) -> Self where
T: Into<NodeId>,
pub fn source_name<T>(self, source_name: T) -> Self where
T: Into<UAString>,
pub fn local_time(self, local_time: Option<TimeZoneDataType>) -> Self
pub fn severity(self, severity: u16) -> Self
pub fn receive_time(self, receive_time: DateTime) -> Self
pub fn properties(&self) -> &Vec<(LocalizedText, Variant)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BaseEventType
impl Send for BaseEventType
impl Sync for BaseEventType
impl Unpin for BaseEventType
impl UnwindSafe for BaseEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more