Struct opcua_types::node_id::NodeId
[−]
[src]
pub struct NodeId {
pub namespace: UInt16,
pub identifier: Identifier,
}An identifier for a node in the address space of an OPC UA Server.
Fields
namespace: UInt16
The index for a namespace
identifier: Identifier
The identifier for the node in the address space
Methods
impl NodeId[src]
fn new<T>(namespace: UInt16, value: T) -> NodeId where
T: 'static + Into<Identifier>, [src]
T: 'static + Into<Identifier>,
fn new_string(namespace: UInt16, value: &str) -> NodeId[src]
Construct a string node id
fn is_null(&self) -> bool[src]
Test if the node id is null, i.e. 0 namespace and 0 identifier
fn null() -> NodeId[src]
Returns a null node id
fn next_numeric() -> NodeId[src]
fn as_object_id(&self) -> Result<ObjectId, ()>[src]
Extracts an ObjectId from a node id, providing the node id holds an object id
fn as_reference_type_id(&self) -> Result<ReferenceTypeId, ()>[src]
fn to_string(&self) -> String[src]
fn is_numeric(&self) -> bool[src]
Test if the node id is numeric
fn is_string(&self) -> bool[src]
Test if the node id is a string
fn is_guid(&self) -> bool[src]
Test if the node id is a guid
fn is_byte_string(&self) -> bool[src]
Test if the node id us a byte string
Trait Implementations
impl PartialEq for NodeId[src]
fn eq(&self, __arg_0: &NodeId) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NodeId) -> bool[src]
This method tests for !=.
impl Eq for NodeId[src]
impl Clone for NodeId[src]
fn clone(&self) -> NodeId[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for NodeId[src]
impl Hash for NodeId[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Default for NodeId[src]
impl BinaryEncoder<NodeId> for NodeId[src]
fn byte_len(&self) -> usize[src]
Returns the byte length of the structure. This calculation should be exact and as efficient as possible. Read more
fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>[src]
Encodes the instance to the write stream.
fn decode<S: Read>(stream: &mut S) -> EncodingResult<Self>[src]
Decodes an instance from the read stream.
impl FromStr for NodeId[src]
type Err = StatusCode
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
Parses a string s to return a value of this type. Read more
impl Into<String> for NodeId[src]
impl<'a> From<(UInt16, &'a str)> for NodeId[src]
impl<'a> Into<ExpandedNodeId> for &'a NodeId[src]
fn into(self) -> ExpandedNodeId[src]
Performs the conversion.