Struct opcua_server::address_space::view::View
source · [−]pub struct View { /* private fields */ }
Expand description
A View
is a type of node within the AddressSpace
.
Implementations
sourceimpl View
impl View
pub fn new<R, S>(
node_id: &NodeId,
browse_name: R,
display_name: S,
event_notifier: EventNotifier,
contains_no_loops: bool
) -> View where
R: Into<QualifiedName>,
S: Into<LocalizedText>,
pub fn from_attributes<S>(
node_id: &NodeId,
browse_name: S,
attributes: ViewAttributes
) -> Result<Self, ()> where
S: Into<QualifiedName>,
pub fn is_valid(&self) -> bool
pub fn event_notifier(&self) -> EventNotifier
pub fn set_event_notifier(&mut self, event_notifier: EventNotifier)
pub fn contains_no_loops(&self) -> bool
pub fn set_contains_no_loops(&mut self, contains_no_loops: bool)
Trait Implementations
sourceimpl Node for View
impl Node for View
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 View
impl NodeBase for View
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 View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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