pub struct References { /* private fields */ }Expand description
Structure for storing and accessing OPC-UA references.
Implementations§
Source§impl References
impl References
Sourcepub fn insert<'a, S>(
&mut self,
source: &NodeId,
references: &'a [(&'a NodeId, &S, ReferenceDirection)],
)
pub fn insert<'a, S>( &mut self, source: &NodeId, references: &'a [(&'a NodeId, &S, ReferenceDirection)], )
Insert a list of references.
Sourcepub fn insert_reference(
&mut self,
source_node: &NodeId,
target_node: &NodeId,
reference_type: impl Into<NodeId>,
)
pub fn insert_reference( &mut self, source_node: &NodeId, target_node: &NodeId, reference_type: impl Into<NodeId>, )
Insert a new reference.
Sourcepub fn insert_references<'a>(
&mut self,
references: impl Iterator<Item = (&'a NodeId, &'a NodeId, impl Into<NodeId>)>,
)
pub fn insert_references<'a>( &mut self, references: impl Iterator<Item = (&'a NodeId, &'a NodeId, impl Into<NodeId>)>, )
Insert a list of references (source, target, reference type)
Sourcepub fn import_reference(&mut self, source_node: NodeId, rf: ImportedReference)
pub fn import_reference(&mut self, source_node: NodeId, rf: ImportedReference)
Import a reference from a nodeset.
Sourcepub fn delete_reference<'a>(
&mut self,
source_node: impl IntoNodeIdRef<'a>,
target_node: impl IntoNodeIdRef<'a>,
reference_type: impl IntoNodeIdRef<'a>,
) -> bool
pub fn delete_reference<'a>( &mut self, source_node: impl IntoNodeIdRef<'a>, target_node: impl IntoNodeIdRef<'a>, reference_type: impl IntoNodeIdRef<'a>, ) -> bool
Delete a reference.
Sourcepub fn delete_node_references<'a>(
&mut self,
source_node: impl IntoNodeIdRef<'a>,
delete_target_references: bool,
) -> bool
pub fn delete_node_references<'a>( &mut self, source_node: impl IntoNodeIdRef<'a>, delete_target_references: bool, ) -> bool
Delete references from the given node. Optionally deleting references to the given node.
Returns whether any references were found.
Sourcepub fn has_reference<'a>(
&self,
source_node: impl IntoNodeIdRef<'a>,
target_node: impl IntoNodeIdRef<'a>,
reference_type: impl IntoNodeIdRef<'a>,
) -> bool
pub fn has_reference<'a>( &self, source_node: impl IntoNodeIdRef<'a>, target_node: impl IntoNodeIdRef<'a>, reference_type: impl IntoNodeIdRef<'a>, ) -> bool
Return true if the given reference exists.
Sourcepub fn find_references<'a: 'b, 'b>(
&'a self,
source_node: impl IntoNodeIdRef<'b>,
filter: Option<(impl Into<NodeId>, bool)>,
type_tree: &'b dyn TypeTree,
direction: BrowseDirection,
) -> impl Iterator<Item = ReferenceRef<'a>> + 'b
pub fn find_references<'a: 'b, 'b>( &'a self, source_node: impl IntoNodeIdRef<'b>, filter: Option<(impl Into<NodeId>, bool)>, type_tree: &'b dyn TypeTree, direction: BrowseDirection, ) -> impl Iterator<Item = ReferenceRef<'a>> + 'b
Return an iterator over references matching the given filters.
Trait Implementations§
Source§impl Debug for References
impl Debug for References
Source§impl Default for References
impl Default for References
Source§fn default() -> References
fn default() -> References
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for References
impl RefUnwindSafe for References
impl Send for References
impl Sync for References
impl Unpin for References
impl UnsafeUnpin for References
impl UnwindSafe for References
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