Interface: AstmLtpWarning
A single LTP protocol / transport warning: a stable code, a value-free human-readable message, and, for a frame-scoped deviation, the frame number only. Never carries a frame's record bytes.
Example
import type { AstmLtpWarning } from "@cosyte/astm";
const w: AstmLtpWarning = {
code: "ASTM_LTP_FRAME_REJECTED",
message: "Frame rejected, NAK sent, retransmit expected.",
frameNumber: 2,
};
Properties
code
readonlycode:LtpWarningCode
frameNumber?
readonlyoptionalframeNumber?:number
The frame's sequence number when the warning is frame-scoped; absent otherwise.
message
readonlymessage:string
Human-readable detail for logs. Never contains the frame's record bytes.