[−][src]Struct opcua_server::address_space::method::MethodBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
Implementations
impl MethodBuilder[src]
pub fn new<T, S>(node_id: &NodeId, browse_name: T, display_name: S) -> Self where
T: Into<QualifiedName>,
S: Into<LocalizedText>, [src]
T: Into<QualifiedName>,
S: Into<LocalizedText>,
Creates a builder for a node. All nodes are required to su
pub fn get_node_id(&self) -> NodeId[src]
pub fn is_valid(&self) -> bool[src]
Tests that the builder is in a valid state to build or insert the node.
pub fn description<V>(self, description: V) -> Self where
V: Into<LocalizedText>, [src]
V: Into<LocalizedText>,
Sets the description of the node
pub fn reference<T>(
self,
node_id: T,
reference_type_id: ReferenceTypeId,
reference_direction: ReferenceDirection
) -> Self where
T: Into<NodeId>, [src]
self,
node_id: T,
reference_type_id: ReferenceTypeId,
reference_direction: ReferenceDirection
) -> Self where
T: Into<NodeId>,
Adds a reference to the node
pub fn organizes<T>(self, organizes_id: T) -> Self where
T: Into<NodeId>, [src]
T: Into<NodeId>,
Indicates this node organizes another node by its id.
pub fn organized_by<T>(self, organized_by_id: T) -> Self where
T: Into<NodeId>, [src]
T: Into<NodeId>,
Indicates this node is organised by another node by its id
pub fn build(self) -> Method[src]
Yields a built node. This function will panic if the node is invalid. Note that calling this function discards any references for the node, so there is no purpose in adding references if you intend to call this method.
pub fn insert(self, address_space: &mut AddressSpace) -> bool[src]
Inserts the node into the address space, including references. This function will panic if the node is in an invalid state.
impl MethodBuilder[src]
pub fn component_of<T>(self, component_of_id: T) -> Self where
T: Into<NodeId>, [src]
T: Into<NodeId>,
pub fn has_component<T>(self, has_component_id: T) -> Self where
T: Into<NodeId>, [src]
T: Into<NodeId>,
impl MethodBuilder[src]
pub fn generates_event<T>(self, event_type: T) -> Self where
T: Into<NodeId>, [src]
T: Into<NodeId>,
impl MethodBuilder[src]
pub fn output_args(
self,
address_space: &mut AddressSpace,
arguments: &[Argument]
) -> Self[src]
self,
address_space: &mut AddressSpace,
arguments: &[Argument]
) -> Self
Specify output arguments from the method. This will create an OutputArguments variable child of the method which describes the out parameters.
pub fn input_args(
self,
address_space: &mut AddressSpace,
arguments: &[Argument]
) -> Self[src]
self,
address_space: &mut AddressSpace,
arguments: &[Argument]
) -> Self
Specify input arguments to the method. This will create an InputArguments variable child of the method which describes the in parameters.
pub fn callback(self, callback: Box<dyn Method + Send + Sync>) -> Self[src]
Auto Trait Implementations
impl !RefUnwindSafe for MethodBuilder
impl Send for MethodBuilder
impl Sync for MethodBuilder
impl Unpin for MethodBuilder
impl !UnwindSafe for MethodBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,