Crate ethercrab_wire
source ·Expand description
Traits used to pack/unpack structs and enums from EtherCAT packets on the wire.
This crate is designed for use with ethercrab but can be
used standalone too.
While these traits can be implemented by hand as normal, it is recommended to derive them using
ethercrab-wire-derive where possible.
§Experimental
This crate is in its early stages and may contain bugs or publish breaking changes at any time.
It is in use by ethercrab and is well exercised there,
but please use with caution in your own code.
Enums§
- Wire encode/decode errors.
Traits§
- A type to be received from the wire, according to EtherCAT spec rules (packed bits, little endian).
- A readable type that has a size known at compile time.
- A type that can be both written to the wire and read back from it.
- Implemented for types with a known size at compile time.
- A type to be sent/received on the wire, according to EtherCAT spec rules (packed bits, little endian).
- Implemented for writeable types with a known size at compile time.
Derive Macros§
- Items that can only be read from the wire.
- Items that can be written to and read from the wire.
- Items that can only be written to the wire.