Module x328_proto::types
source · Expand description
This module defines range-checked types for X3.28 addresses, parameters and values, meant to simplify correct usage of the API.
Structs
- Address is a range-checked [0, 99] integer, representing a node address.
Parameter
is a range-checked [0, 9999] integer, representing a register in a node.- Value represents a parameter value that can be sent over the X3.28 protocol.
Enums
- Error type for this module
ValueFormat
determines how aValue
is represented in the on-wire format.
Traits
- Trait to convert
T: TryInto<u8>
into anAddress
. - Trait to convert
T: TryInto<i16>
into aParameter
. - Trait to convert
T: Into<i32>
into aValue
.