Trait 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§

Source

fn node_class(&self) -> NodeClass

Gets associated node class.

Source

fn attribute_type(&self) -> *const UA_DataType

Gets associated attribute type.

This is <Self as DataType>::data_type() with a more appropriate name.

Source

fn with_display_name(self, display_name: &LocalizedText) -> Self

Sets display name.

Source

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.

Implementors§