pub enum Value {
}Expand description
User-facing wrapper for rust_ethernet_ip::PlcValue returned by this crate.
This API hides the wire-level details exposed by the underlying EtherNet/IP client.
Primitive PLC values are mapped into Rust primitives, backend-decoded strings are exposed
as plain Strings, and user-defined payloads are preserved as opaque
StructuredValue bytes.
Variants§
Bool(bool)
Sint(i8)
Int(i16)
Dint(i32)
Lint(i64)
Usint(u8)
Uint(u16)
Udint(u32)
Ulint(u64)
Real(f32)
Lreal(f64)
String(String)
Struct(StructuredValue)
Trait Implementations§
Source§impl From<StructuredValue> for Value
impl From<StructuredValue> for Value
Source§fn from(value: StructuredValue) -> Self
fn from(value: StructuredValue) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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