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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.