#[non_exhaustive]pub enum Finding {
Violation {
line: usize,
direction: Direction,
kind: MessageKind,
violation: Violation,
},
StatusDiffers {
line: usize,
direction: Direction,
kind: MessageKind,
recorded: ReceptionStatusValues,
expected: ReceptionStatusValues,
because: Option<String>,
},
Unanswered {
line: usize,
direction: Direction,
kind: MessageKind,
message_id: Id,
},
UnmatchedAnswer {
line: usize,
direction: Direction,
subject: Id,
},
}testing only.Expand description
Something a recorded conversation did that this crate would not have done.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Violation
A rule fired on a message the transcript carries.
Fields
kind: MessageKindWhat it was.
StatusDiffers
The peer answered with a different ReceptionStatus than this crate would have.
The interop finding: two readings of the standard, in one line, with the rule that produced this side’s named.
Fields
kind: MessageKindWhat it was.
recorded: ReceptionStatusValuesWhat the transcript records the peer answering.
expected: ReceptionStatusValuesWhat this crate would answer.
Unanswered
A message that must be answered was never answered.
S2J requires a ReceptionStatus for every message except a ReceptionStatus;
forgetting one is the deadlock [s2-json #22] describes, and a transcript is the
only place it shows.
Fields
kind: MessageKindWhat it was.
UnmatchedAnswer
A ReceptionStatus answering a message the transcript does not contain.
Either the recording is incomplete or the peer answered something nobody sent.