[−][src]Struct opcua_types::node_id::NodeId
An identifier for a node in the address space of an OPC UA Server.
Fields
namespace: u16
The index for a namespace
identifier: Identifier
The identifier for the node in the address space
Methods
impl NodeId
[src]
pub fn new<T>(namespace: u16, value: T) -> NodeId where
T: 'static + Into<Identifier>,
[src]
T: 'static + Into<Identifier>,
pub fn is_null(&self) -> bool
[src]
Test if the node id is null, i.e. 0 namespace and 0 identifier
pub fn null() -> NodeId
[src]
Returns a null node id
pub fn next_numeric() -> NodeId
[src]
pub fn as_object_id(&self) -> Result<ObjectId, ()>
[src]
Extracts an ObjectId from a node id, providing the node id holds an object id
pub fn as_reference_type_id(&self) -> Result<ReferenceTypeId, ()>
[src]
pub fn is_numeric(&self) -> bool
[src]
Test if the node id is numeric
pub fn is_string(&self) -> bool
[src]
Test if the node id is a string
pub fn is_guid(&self) -> bool
[src]
Test if the node id is a guid
pub fn is_byte_string(&self) -> bool
[src]
Test if the node id us a byte string
Trait Implementations
impl BinaryEncoder<NodeId> for NodeId
[src]
fn byte_len(&self) -> usize
[src]
fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>
[src]
fn decode<S: Read>(
stream: &mut S,
decoding_limits: &DecodingLimits
) -> EncodingResult<Self>
[src]
stream: &mut S,
decoding_limits: &DecodingLimits
) -> EncodingResult<Self>
fn to_vec(&self) -> Vec<u8>
[src]
impl Into<String> for NodeId
[src]
impl<'a> Into<ExpandedNodeId> for &'a NodeId
[src]
fn into(self) -> ExpandedNodeId
[src]
impl Into<NodeId> for DataTypeId
[src]
impl Into<NodeId> for ReferenceTypeId
[src]
impl Into<NodeId> for ObjectTypeId
[src]
impl Into<NodeId> for VariableTypeId
[src]
impl Into<NodeId> for ObjectId
[src]
impl Into<NodeId> for VariableId
[src]
impl Into<NodeId> for MethodId
[src]
impl Eq for NodeId
[src]
impl Default for NodeId
[src]
impl PartialEq<NodeId> for NodeId
[src]
impl<'a> From<(u16, &'a str)> for NodeId
[src]
impl From<(u16, UAString)> for NodeId
[src]
impl From<(u16, u32)> for NodeId
[src]
impl From<(u16, Guid)> for NodeId
[src]
impl From<(u16, ByteString)> for NodeId
[src]
impl From<NodeId> for ExpandedNodeId
[src]
impl<'a> From<&'a DataTypeId> for NodeId
[src]
fn from(r: &'a DataTypeId) -> Self
[src]
impl<'a> From<&'a ReferenceTypeId> for NodeId
[src]
fn from(r: &'a ReferenceTypeId) -> Self
[src]
impl<'a> From<&'a ObjectTypeId> for NodeId
[src]
fn from(r: &'a ObjectTypeId) -> Self
[src]
impl<'a> From<&'a VariableTypeId> for NodeId
[src]
fn from(r: &'a VariableTypeId) -> Self
[src]
impl<'a> From<&'a ObjectId> for NodeId
[src]
impl<'a> From<&'a VariableId> for NodeId
[src]
fn from(r: &'a VariableId) -> Self
[src]
impl<'a> From<&'a MethodId> for NodeId
[src]
impl From<NodeId> for Variant
[src]
impl<'a> From<&'a NodeId> for ReadValueId
[src]
impl From<NodeId> for ReadValueId
[src]
impl Clone for NodeId
[src]
fn clone(&self) -> NodeId
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for NodeId
[src]
impl Debug for NodeId
[src]
impl Hash for NodeId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
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 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]
impl Serialize for NodeId
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for NodeId
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,