Struct opcua_server::address_space::variable_type::VariableType
source · [−]pub struct VariableType { /* private fields */ }
Expand description
A VariableType
is a type of node within the AddressSpace
.
Implementations
sourceimpl VariableType
impl VariableType
pub fn new<R, S>(
node_id: &NodeId,
browse_name: R,
display_name: S,
data_type: NodeId,
is_abstract: bool,
value_rank: i32
) -> VariableType where
R: Into<QualifiedName>,
S: Into<LocalizedText>,
pub fn from_attributes<S>(
node_id: &NodeId,
browse_name: S,
attributes: VariableTypeAttributes
) -> Result<Self, ()> where
S: Into<QualifiedName>,
pub fn is_valid(&self) -> bool
pub fn data_type(&self) -> NodeId
pub fn set_data_type<T>(&mut self, data_type: T) where
T: Into<NodeId>,
pub fn is_abstract(&self) -> bool
pub fn set_is_abstract(&mut self, is_abstract: bool)
pub fn value_rank(&self) -> i32
pub fn set_value_rank(&mut self, value_rank: i32)
pub fn array_dimensions(&self) -> Option<Vec<u32>>
pub fn set_array_dimensions(&mut self, array_dimensions: &[u32])
pub fn value(&self) -> Option<DataValue>
pub fn set_value<V>(&mut self, value: V) where
V: Into<Variant>,
Trait Implementations
sourceimpl Debug for VariableType
impl Debug for VariableType
sourceimpl Default for VariableType
impl Default for VariableType
sourceimpl Into<NodeType> for VariableType
impl Into<NodeType> for VariableType
sourceimpl Node for VariableType
impl Node for VariableType
sourcefn get_attribute_max_age(
&self,
timestamps_to_return: TimestampsToReturn,
attribute_id: AttributeId,
index_range: NumericRange,
data_encoding: &QualifiedName,
max_age: f64
) -> Option<DataValue>
fn get_attribute_max_age(
&self,
timestamps_to_return: TimestampsToReturn,
attribute_id: AttributeId,
index_range: NumericRange,
data_encoding: &QualifiedName,
max_age: f64
) -> Option<DataValue>
Finds the attribute and value. The param max_age
is a hint in milliseconds: Read more
sourcefn set_attribute(
&mut self,
attribute_id: AttributeId,
value: Variant
) -> Result<(), StatusCode>
fn set_attribute(
&mut self,
attribute_id: AttributeId,
value: Variant
) -> Result<(), StatusCode>
Sets the attribute with the new value
sourcefn get_attribute(
&self,
timestamps_to_return: TimestampsToReturn,
attribute_id: AttributeId,
index_range: NumericRange,
data_encoding: &QualifiedName
) -> Option<DataValue>
fn get_attribute(
&self,
timestamps_to_return: TimestampsToReturn,
attribute_id: AttributeId,
index_range: NumericRange,
data_encoding: &QualifiedName
) -> Option<DataValue>
Finds the attribute and value.
sourceimpl NodeBase for VariableType
impl NodeBase for VariableType
sourcefn node_class(&self) -> NodeClass
fn node_class(&self) -> NodeClass
Returns the node class - Object, ObjectType, Method, DataType, ReferenceType, Variable, VariableType or View
sourcefn browse_name(&self) -> QualifiedName
fn browse_name(&self) -> QualifiedName
Returns the node’s browse name
sourcefn display_name(&self) -> LocalizedText
fn display_name(&self) -> LocalizedText
Returns the node’s display name
sourcefn set_display_name(&mut self, display_name: LocalizedText)
fn set_display_name(&mut self, display_name: LocalizedText)
Sets the node’s display name
fn description(&self) -> Option<LocalizedText>
fn set_description(&mut self, description: LocalizedText)
fn write_mask(&self) -> Option<WriteMask>
fn set_write_mask(&mut self, write_mask: WriteMask)
fn user_write_mask(&self) -> Option<WriteMask>
fn set_user_write_mask(&mut self, user_write_mask: WriteMask)
Auto Trait Implementations
impl RefUnwindSafe for VariableType
impl Send for VariableType
impl Sync for VariableType
impl Unpin for VariableType
impl UnwindSafe for VariableType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more