Enum opcua_core::prelude::Operand
source · [−]pub enum Operand {
ElementOperand(ElementOperand),
LiteralOperand(LiteralOperand),
AttributeOperand(AttributeOperand),
SimpleAttributeOperand(SimpleAttributeOperand),
}
Variants
ElementOperand(ElementOperand)
LiteralOperand(LiteralOperand)
AttributeOperand(AttributeOperand)
SimpleAttributeOperand(SimpleAttributeOperand)
Implementations
sourceimpl Operand
impl Operand
pub fn element(index: u32) -> Operand
pub fn literal<T>(literal: T) -> Operand where
T: Into<LiteralOperand>,
sourcepub fn simple_attribute<T>(
type_definition_id: T,
browse_path: &str,
attribute_id: AttributeId,
index_range: UAString
) -> Operand where
T: Into<NodeId>,
pub fn simple_attribute<T>(
type_definition_id: T,
browse_path: &str,
attribute_id: AttributeId,
index_range: UAString
) -> Operand where
T: Into<NodeId>,
Creates a simple attribute operand. The browse path is the browse name using / as a separator.
pub fn operand_type(&self) -> OperandType
pub fn is_element(&self) -> bool
pub fn is_literal(&self) -> bool
pub fn is_attribute(&self) -> bool
pub fn is_simple_attribute(&self) -> bool
Trait Implementations
sourceimpl<'_> From<&'_ Operand> for ExtensionObject
impl<'_> From<&'_ Operand> for ExtensionObject
sourcefn from(v: &Operand) -> ExtensionObject
fn from(v: &Operand) -> ExtensionObject
Converts to this type from the input type.
sourceimpl From<ElementOperand> for Operand
impl From<ElementOperand> for Operand
sourcefn from(v: ElementOperand) -> Operand
fn from(v: ElementOperand) -> Operand
Converts to this type from the input type.
sourceimpl From<LiteralOperand> for Operand
impl From<LiteralOperand> for Operand
sourcefn from(v: LiteralOperand) -> Operand
fn from(v: LiteralOperand) -> Operand
Converts to this type from the input type.
sourceimpl From<Operand> for ExtensionObject
impl From<Operand> for ExtensionObject
sourcefn from(v: Operand) -> ExtensionObject
fn from(v: Operand) -> ExtensionObject
Converts to this type from the input type.
sourceimpl From<SimpleAttributeOperand> for Operand
impl From<SimpleAttributeOperand> for Operand
sourcefn from(v: SimpleAttributeOperand) -> Operand
fn from(v: SimpleAttributeOperand) -> Operand
Converts to this type from the input type.
sourceimpl<'_> TryFrom<&'_ ExtensionObject> for Operand
impl<'_> TryFrom<&'_ ExtensionObject> for Operand
type Error = StatusCode
type Error = StatusCode
The type returned in the event of a conversion error.
sourcefn try_from(
v: &ExtensionObject
) -> Result<Operand, <Operand as TryFrom<&'_ ExtensionObject>>::Error>
fn try_from(
v: &ExtensionObject
) -> Result<Operand, <Operand as TryFrom<&'_ ExtensionObject>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
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