Expand description
Error codes used in Optional Interaction Rejected / Datagram Rejected.
Codes are 16 bits. The top nibble classifies the error: 0x1xxx is
permanent (do not retry the same request), 0x2xxx is temporary
(the request may succeed if retried later). Lower bits refine the
reason. Only the codes this crate uses or that applications commonly
need are named here; see the Message Network Standard for the full
list and the reference table.
Constants§
- BUFFER_
UNAVAILABLE - Temporary: the receiver has no buffer available right now.
- NOT_
IMPLEMENTED - Permanent: not implemented, no further detail.
- NOT_
IMPLEMENTED_ COMMAND - Permanent: the command is not known.
- NOT_
IMPLEMENTED_ SUBCOMMAND - Permanent: the sub-command is not known.
- NOT_
IMPLEMENTED_ UNKNOWN_ MTI - Permanent: the MTI or transport protocol is not implemented. Sent by
Nodefor addressed messages it does not support, for Traction Control Commands to a node that is not a train, and in Datagram Rejected when it has no datagram support. - OUT_
OF_ ORDER - Temporary: frames arrived out of order (multi-frame reassembly failed).
- OUT_
OF_ ORDER_ NO_ START - Temporary, out of order: a middle or final frame arrived without a first frame.
- OUT_
OF_ ORDER_ START_ BEFORE_ END - Temporary, out of order: a first frame arrived before the previous message from the same source had ended.
- PERMANENT
- Permanent error, no further detail.
- SOURCE_
NOT_ PERMITTED - Permanent: source not permitted (the sender may not make this request, e.g. it is not the train’s controller).
- TEMPORARY
- Temporary error, no further detail; retrying may succeed.
- TIMEOUT
- Temporary: timed out waiting for the rest of a multi-frame message or for a reply.