pub enum OpcValue {
String(String),
Int(i32),
Float(f64),
Bool(bool),
}Expand description
Typed value to write to an OPC DA tag.
§Examples
use opc_da_client::OpcValue;
let v = OpcValue::Float(3.14);
assert_eq!(v, OpcValue::Float(3.14));Variants§
String(String)
String value (VT_BSTR) — server may coerce to target type.
Int(i32)
32-bit integer (VT_I4).
Float(f64)
64-bit float (VT_R8).
Bool(bool)
Boolean (VT_BOOL).
Trait Implementations§
impl StructuralPartialEq for OpcValue
Auto Trait Implementations§
impl Freeze for OpcValue
impl RefUnwindSafe for OpcValue
impl Send for OpcValue
impl Sync for OpcValue
impl Unpin for OpcValue
impl UnsafeUnpin for OpcValue
impl UnwindSafe for OpcValue
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