pub struct ReferenceType { /* private fields */ }Expand description
A ReferenceType is a type of node within the AddressSpace.
Implementations§
Source§impl ReferenceType
impl ReferenceType
Sourcepub fn new(
node_id: &NodeId,
browse_name: impl Into<QualifiedName>,
display_name: impl Into<LocalizedText>,
inverse_name: Option<LocalizedText>,
symmetric: bool,
is_abstract: bool,
) -> ReferenceType
pub fn new( node_id: &NodeId, browse_name: impl Into<QualifiedName>, display_name: impl Into<LocalizedText>, inverse_name: Option<LocalizedText>, symmetric: bool, is_abstract: bool, ) -> ReferenceType
Create a new reference type.
Sourcepub fn new_full(
base: Base,
symmetric: bool,
is_abstract: bool,
inverse_name: Option<LocalizedText>,
) -> Self
pub fn new_full( base: Base, symmetric: bool, is_abstract: bool, inverse_name: Option<LocalizedText>, ) -> Self
Create a new reference type with all attributes, may change if new attributes are added to the OPC-UA standard.
Sourcepub fn from_attributes(
node_id: &NodeId,
browse_name: impl Into<QualifiedName>,
attributes: ReferenceTypeAttributes,
) -> Result<Self, FromAttributesError>
pub fn from_attributes( node_id: &NodeId, browse_name: impl Into<QualifiedName>, attributes: ReferenceTypeAttributes, ) -> Result<Self, FromAttributesError>
Create a new reference type from ReferenceTypeAttributes.
Sourcepub fn set_symmetric(&mut self, symmetric: bool)
pub fn set_symmetric(&mut self, symmetric: bool)
Set whether this reference type is symmetric.
Sourcepub fn is_abstract(&self) -> bool
pub fn is_abstract(&self) -> bool
Get whether this reference type is abstract.
Sourcepub fn set_is_abstract(&mut self, is_abstract: bool)
pub fn set_is_abstract(&mut self, is_abstract: bool)
Get whether this reference type is abstract.
Sourcepub fn inverse_name(&self) -> Option<LocalizedText>
pub fn inverse_name(&self) -> Option<LocalizedText>
Get the inverse name of this reference type.
Sourcepub fn set_inverse_name(&mut self, inverse_name: LocalizedText)
pub fn set_inverse_name(&mut self, inverse_name: LocalizedText)
Set the inverse name of this reference type.
Trait Implementations§
Source§impl Debug for ReferenceType
impl Debug for ReferenceType
Source§impl Default for ReferenceType
impl Default for ReferenceType
Source§impl From<ReferenceType> for NodeType
impl From<ReferenceType> for NodeType
Source§fn from(value: ReferenceType) -> Self
fn from(value: ReferenceType) -> Self
Converts to this type from the input type.
Source§impl Node for ReferenceType
impl Node for ReferenceType
Source§fn get_attribute_max_age(
&self,
timestamps_to_return: TimestampsToReturn,
attribute_id: AttributeId,
index_range: &NumericRange,
data_encoding: &DataEncoding,
max_age: f64,
) -> Option<DataValue>
fn get_attribute_max_age( &self, timestamps_to_return: TimestampsToReturn, attribute_id: AttributeId, index_range: &NumericRange, data_encoding: &DataEncoding, max_age: f64, ) -> Option<DataValue>
Finds the attribute and value. The param
max_age is a hint in milliseconds: Read moreSource§fn set_attribute(
&mut self,
attribute_id: AttributeId,
value: Variant,
) -> Result<(), StatusCode>
fn set_attribute( &mut self, attribute_id: AttributeId, value: Variant, ) -> Result<(), StatusCode>
Sets the attribute with the new value
Source§fn get_attribute(
&self,
timestamps_to_return: TimestampsToReturn,
attribute_id: AttributeId,
index_range: &NumericRange,
data_encoding: &DataEncoding,
) -> Option<DataValue>
fn get_attribute( &self, timestamps_to_return: TimestampsToReturn, attribute_id: AttributeId, index_range: &NumericRange, data_encoding: &DataEncoding, ) -> Option<DataValue>
Finds the attribute and value.
Source§impl NodeBase for ReferenceType
impl NodeBase for ReferenceType
Source§fn node_class(&self) -> NodeClass
fn node_class(&self) -> NodeClass
Returns the node class - Object, ObjectType, Method, DataType, ReferenceType, Variable, VariableType or View
Source§fn browse_name(&self) -> &QualifiedName
fn browse_name(&self) -> &QualifiedName
Returns the node’s browse name
Source§fn display_name(&self) -> &LocalizedText
fn display_name(&self) -> &LocalizedText
Returns the node’s display name
Source§fn set_display_name(&mut self, display_name: LocalizedText)
fn set_display_name(&mut self, display_name: LocalizedText)
Sets the node’s display name
Source§fn description(&self) -> Option<&LocalizedText>
fn description(&self) -> Option<&LocalizedText>
Get the description of this node.
Source§fn set_description(&mut self, description: LocalizedText)
fn set_description(&mut self, description: LocalizedText)
Set the description of this node.
Source§fn write_mask(&self) -> Option<WriteMask>
fn write_mask(&self) -> Option<WriteMask>
Get the write mask of this node.
Source§fn set_write_mask(&mut self, write_mask: WriteMask)
fn set_write_mask(&mut self, write_mask: WriteMask)
Set the write mask of this node.
Source§fn user_write_mask(&self) -> Option<WriteMask>
fn user_write_mask(&self) -> Option<WriteMask>
Get the user write mask for this node.
Source§fn set_user_write_mask(&mut self, user_write_mask: WriteMask)
fn set_user_write_mask(&mut self, user_write_mask: WriteMask)
Set the user write mask for this node.
Auto Trait Implementations§
impl Freeze for ReferenceType
impl RefUnwindSafe for ReferenceType
impl Send for ReferenceType
impl Sync for ReferenceType
impl Unpin for ReferenceType
impl UnsafeUnpin for ReferenceType
impl UnwindSafe for ReferenceType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more