Struct opcua_types::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 null() -> NodeId
Returns a null node id
fn next_numeric() -> NodeId
fn as_object_id(&self) -> Result<ObjectId, ()>
Extracts an ObjectId from a node id, providing the node id holds an object id
fn as_reference_type_id(&self) -> Result<ReferenceTypeId, ()>
fn to_string(&self) -> String
fn new_numeric(namespace: UInt16, value: UInt64) -> NodeId
Construct a numeric node id
fn new_string(namespace: UInt16, value: &str) -> NodeId
Construct a string node id
fn new_guid(namespace: UInt16, value: Guid) -> NodeId
Construct a guid node id
fn new_byte_string(namespace: UInt16, value: ByteString) -> NodeId
Construct a bytestring node id
fn is_null(&self) -> bool
Test if the node id is null, i.e. 0 namespace and 0 identifier
fn is_numeric(&self) -> bool
Test if the node id is numeric
fn is_string(&self) -> bool
Test if the node id is a string
fn is_guid(&self) -> bool
Test if the node id is a guid
fn is_byte_string(&self) -> bool
Test if the node id us a byte string
Trait Implementations
impl PartialEq for NodeId
[src]
fn eq(&self, __arg_0: &NodeId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NodeId) -> bool
This method tests for !=
.
impl Eq for NodeId
[src]
impl Clone for NodeId
[src]
fn clone(&self) -> NodeId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl BinaryEncoder<NodeId> for NodeId
[src]
fn byte_len(&self) -> usize
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>
Encodes the instance to the write stream.
fn decode<S: Read>(stream: &mut S) -> EncodingResult<Self>
Decodes an instance from the read stream.