pub enum IsoTpError {
SequenceError {
expected: u8,
actual: u8,
},
UnexpectedConsecutiveFrame,
UnknownFlowStatus(u8),
InvalidLength,
PayloadTooLarge,
EmptySingleFrame,
FrameTooShort {
actual: usize,
},
SessionAborted,
Can(CanError),
UnknownFrameType(u8),
}Variants§
SequenceError
A consecutive frame arrived with an unexpected sequence number. Indicates a lost or reordered frame.
UnexpectedConsecutiveFrame
A consecutive frame arrived before a first frame was received. The reassembler was not in an active session.
UnknownFlowStatus(u8)
A flow control frame arrived with an unknown flow status nibble.
InvalidLength
The declared message length in the first frame is zero.
PayloadTooLarge
The payload provided to the segmenter exceeds what ISO-TP can express in a first frame length field (classic CAN: 4095 bytes, CAN FD: 4294967295 bytes via escape sequence).
EmptySingleFrame
A single frame was received with a length of zero.
FrameTooShort
The frame buffer does not contain enough bytes for the PCI given the current addressing mode.
SessionAborted
The reassembler received a new first frame while already mid-session. The previous session is abandoned.
Can(CanError)
Underlying CAN frame error.
UnknownFrameType(u8)
The PCI bytes upper nibble does not match any known ISO-TP frame type.