pub struct DecodeReport {
pub messages: usize,
pub controls: usize,
pub control_cancels: usize,
pub control_responses: usize,
pub unknown_types: Vec<String>,
pub unknown_control_subtypes: Vec<String>,
pub unmodelled_system_subtypes: Vec<String>,
pub unmodelled_content_block_types: Vec<String>,
pub absorbed_by_catch_all: Vec<String>,
pub decode_errors: Vec<(usize, String)>,
}Expand description
Outcome of running every inbound line in a log through
decode_dispatch. Split across known decode categories plus Unknowns
and outright errors.
Fields§
§messages: usizeCount of inbound lines that decoded to a regular Message.
controls: usizeCount of inbound lines that decoded to a ControlRequest.
control_cancels: usizeCount of control_cancel_request frames.
control_responses: usizeCount of control_response frames (replies from the CLI to our
outbound control_requests - initialize, set_model, interrupt, …).
unknown_types: Vec<String>Unrecognised type values seen. Each entry is the type string
the CLI sent.
unknown_control_subtypes: Vec<String>Unrecognised control_request.subtype values seen.
unmodelled_system_subtypes: Vec<String>system subtypes that fell through to the generic
Message::System bucket and are not in
EXPECTED_GENERIC_SYSTEM_SUBTYPES.
unmodelled_content_block_types: Vec<String>Content-block type values that decoded to
ContentBlock::Unknown.
absorbed_by_catch_all: Vec<String>Wire values a #[serde(other)] catch-all absorbed. Each entry is
<json pointer>: <wire value> -> <fallback>.
decode_errors: Vec<(usize, String)>Hard decode errors - line was recognised but inner shape was invalid, or JSON malformed.