pub struct VariableBuilder { /* private fields */ }
Expand description

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

Creates a builder for a node. All nodes are required to su

Tests that the builder is in a valid state to build or insert the node.

Sets the description of the node

Adds a reference to the node

Indicates this node organizes another node by its id.

Indicates this node is organised by another node by its id

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.

Inserts the node into the address space, including references. This function will panic if the node is in an invalid state.

Sets the value of the variable.

Sets the data type of the variable.

Sets the historizing flag for the variable.

Sets the access level for the variable.

Sets the user access level for the variable.

Sets the value rank for the variable.

Sets the array dimensions for the variable.

Makes the variable writable (by default it isn’t)

Makes the variable history-readable

Makes the variable history-updateable

Sets the minimum sampling interval for the variable.

Sets a value getter function for the variable. Whenever the value of a variable needs to be fetched (e.g. from a monitored item subscription), this trait will be called to get the value.

Sets a value setter function for the variable. Whenever the value of a variable is set via a service, this trait will be called to set the value. It is up to the implementation to decide what to do if that happens.

Add a reference to the variable indicating it has a type of another node.

Add a reference to the variable indicating it has a modelling rule of another node.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.