pub struct VariableAttributes(/* private fields */);Expand description
Wrapper for
UA_VariableAttributes
from open62541_sys.
This owns the wrapped data. When the wrapper is dropped, the inner value is cleaned up
with UA_clear() to release dynamically allocated memory held by the value.
Implementations§
Source§impl VariableAttributes
impl VariableAttributes
pub fn with_data_type(self, data_type: &NodeId) -> Self
pub const fn with_value_rank(self, rank: i32) -> Self
pub fn with_array_dimensions(self, array_dimensions: &[u32]) -> Self
pub const fn with_access_level(self, access_level: &AccessLevelType) -> Self
Trait Implementations§
Source§impl Attributes for VariableAttributes
impl Attributes for VariableAttributes
Source§fn node_class(&self) -> NodeClass
fn node_class(&self) -> NodeClass
Gets associated node class.
Source§fn attribute_type(&self) -> *const UA_DataType
fn attribute_type(&self) -> *const UA_DataType
Gets associated attribute type. Read more
Source§fn with_display_name(self, display_name: &LocalizedText) -> Self
fn with_display_name(self, display_name: &LocalizedText) -> Self
Sets display name.
Source§fn as_node_attributes(&self) -> &NodeAttributes
fn as_node_attributes(&self) -> &NodeAttributes
Gets generic
ua::NodeAttributes type.Source§impl Clone for VariableAttributes
impl Clone for VariableAttributes
Source§impl DataType for VariableAttributes
impl DataType for VariableAttributes
Source§type Inner = UA_VariableAttributes
type Inner = UA_VariableAttributes
Inner type. Read more
Source§unsafe fn from_raw(src: Self::Inner) -> Self
unsafe fn from_raw(src: Self::Inner) -> Self
Creates wrapper by taking ownership of value. Read more
Source§fn take_raw(src: &mut Self::Inner) -> Self
fn take_raw(src: &mut Self::Inner) -> Self
Creates wrapper by moving value from
src. Read moreSource§fn clone_into_raw(&self, dst: &mut Self::Inner)
fn clone_into_raw(&self, dst: &mut Self::Inner)
Clones value into
dst. Read moreSource§fn move_into_raw(self, dst: &mut Self::Inner)
fn move_into_raw(self, dst: &mut Self::Inner)
Moves value into
dst, giving up ownership. Read moreSource§unsafe fn to_raw_copy(this: &Self) -> Self::Inner
unsafe fn to_raw_copy(this: &Self) -> Self::Inner
Creates copy without giving up ownership. Read more
Source§unsafe fn as_mut(&mut self) -> &mut Self::Inner
unsafe fn as_mut(&mut self) -> &mut Self::Inner
Returns exclusive reference to value. Read more
Source§impl Debug for VariableAttributes
impl Debug for VariableAttributes
Source§impl Default for VariableAttributes
impl Default for VariableAttributes
Source§impl Drop for VariableAttributes
impl Drop for VariableAttributes
impl Eq for VariableAttributes
Source§impl Ord for VariableAttributes
impl Ord for VariableAttributes
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VariableAttributes
impl PartialEq for VariableAttributes
Source§impl PartialOrd for VariableAttributes
impl PartialOrd for VariableAttributes
impl Send for VariableAttributes
impl Sync for VariableAttributes
Auto Trait Implementations§
impl Freeze for VariableAttributes
impl RefUnwindSafe for VariableAttributes
impl Unpin for VariableAttributes
impl UnsafeUnpin for VariableAttributes
impl UnwindSafe for VariableAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DataTypeExt for Twhere
T: DataType,
impl<T> DataTypeExt for Twhere
T: DataType,
Source§fn from_inner(value: <T as DataTypeExt>::Inner) -> Result<T, Error>
fn from_inner(value: <T as DataTypeExt>::Inner) -> Result<T, Error>
Creates instance for inner type. Read more
Source§fn into_inner(self) -> <T as DataTypeExt>::Inner
fn into_inner(self) -> <T as DataTypeExt>::Inner
Returns inner type representation.