[−][src]Struct opcua_server::prelude::service_types::RelativePathElement
An element in a relative path.
Fields
reference_type_id: NodeIdis_inverse: boolinclude_subtypes: booltarget_name: QualifiedNameMethods
impl RelativePathElement[src]
pub fn default_node_resolver(
namespace: u16,
browse_name: &str
) -> Option<NodeId>[src]
namespace: u16,
browse_name: &str
) -> Option<NodeId>
This is the default node resolver that attempts to resolve a browse name onto a reference type id. The default implementation resides in the types module so it doesn't have access to the address space.
Therefore it makes a best guess by testing the browse name against the standard reference types and if fails to match it will produce a node id from the namespace and browse name.
pub fn default_browse_name_resolver(node_id: &NodeId) -> Option<String>[src]
pub fn from_str<CB>(
path: &str,
node_resolver: &CB
) -> Result<RelativePathElement, ()> where
CB: Fn(u16, &str) -> Option<NodeId>, [src]
path: &str,
node_resolver: &CB
) -> Result<RelativePathElement, ()> where
CB: Fn(u16, &str) -> Option<NodeId>,
Parse a relative path element according to the OPC UA Part 4 Appendix A BNF
<relative-path> ::= <reference-type> <browse-name> [relative-path]
<reference-type> ::= '/' | '.' | '<' ['#'] ['!'] <browse-name> '>'
<browse-name> ::= [<namespace-index> ':'] <name>
<namespace-index> ::= <digit> [<digit>]
<digit> ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
<name> ::= (<name-char> | '&' <reserved-char>) [<name>]
<reserved-char> ::= '/' | '.' | '<' | '>' | ':' | '#' | '!' | '&'
<name-char> ::= All valid characters for a String (see Part 3) excluding reserved-chars.
Examples
/foo/0:foo.bar<0:HasEncoding>bar<!NonHierarchicalReferences>foo<#!2:MyReftype>2:blah
Trait Implementations
impl BinaryEncoder<RelativePathElement> for RelativePathElement[src]
fn byte_len(&self) -> usize[src]
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write, [src]
S: Write,
fn decode<S>(
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<RelativePathElement, StatusCode> where
S: Read, [src]
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<RelativePathElement, StatusCode> where
S: Read,
fn to_vec(&self) -> Vec<u8>[src]
impl Clone for RelativePathElement[src]
fn clone(&self) -> RelativePathElement[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl MessageInfo for RelativePathElement[src]
impl PartialEq<RelativePathElement> for RelativePathElement[src]
fn eq(&self, other: &RelativePathElement) -> bool[src]
fn ne(&self, other: &RelativePathElement) -> bool[src]
impl Debug for RelativePathElement[src]
Auto Trait Implementations
impl Send for RelativePathElement
impl Sync for RelativePathElement
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.