rust-ethernet-ip-types
Shared PLC value types for the rust-ethernet-ip ecosystem.
This crate exposes the wire-neutral data model that the protocol, UDT, and client crates all agree on:
PlcValue— tagged enum covering every Allen-Bradley CIP scalar type (Bool,Sint,Int,Dint,Lint,Usint,Uint,Udint,Ulint,Real,Lreal,String,Udt)UdtData—{ symbol_id, data }envelope for Logix User-Defined TypesUdtCodec— trait used by therust-ethernet-ip-udtcrate to parse/serialize UDT byte buffersTypeError— value-model error type
Who should use this crate
Most consumers want the top-level rust-ethernet-ip crate, which re-exports the user-facing items from this crate alongside the network client, FFI surface, and protocol codecs.
Depend on rust-ethernet-ip-types directly only if you are building an independent tooling layer (codec, transport, schema export, etc.) that needs the wire-neutral model without pulling in the full client.
Usage
use PlcValue;
let v = Dint;
assert_eq!;
License
MIT. Part of the rust-ethernet-ip workspace.