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§

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.

Object Safety§

This trait is not object safe.

Implementors§