Trait open62541::Attributes
source · pub trait Attributes: DataType {
// Required methods
fn node_class(&self) -> NodeClass;
fn attribute_type(&self) -> *const UA_DataType;
fn with_display_name(self, display_name: &LocalizedText) -> Self;
fn as_node_attributes(&self) -> &NodeAttributes;
}Expand description
Server node attributes.
This is used to allow handling different node types when adding nodes to the server’s data tree
in Server::add_node().
Required Methods§
sourcefn node_class(&self) -> NodeClass
fn node_class(&self) -> NodeClass
Gets associated node class.
sourcefn attribute_type(&self) -> *const UA_DataType
fn attribute_type(&self) -> *const UA_DataType
Gets associated attribute type.
This is <Self as DataType>::data_type() with a more appropriate name.
sourcefn with_display_name(self, display_name: &LocalizedText) -> Self
fn with_display_name(self, display_name: &LocalizedText) -> Self
Sets display name.
sourcefn as_node_attributes(&self) -> &NodeAttributes
fn as_node_attributes(&self) -> &NodeAttributes
Gets generic ua::NodeAttributes type.
Object Safety§
This trait is not object safe.