pub fn try_parse(
entry: &LogEntry,
timestamp: Option<DateTime<Utc>>,
) -> Option<GameEvent>Expand description
Attempts to parse a LogEntry as a connection-error event.
Dispatches on entry.header:
EntryHeader::UnityCrossThreadLogger— inspect the body for one of the four JSON-bearing error markers. Bare-marker bodies (no JSON payload) returnNone.EntryHeader::ConnectionManager— parse the body forReconnect result : <value>orReconnect <outcome>plain-text markers.EntryHeader::Matchmaking— parse the body forMatchmaking: GRE connection lost.- Any other header — return
None.
The timestamp is None when the log entry header did not contain a
parseable timestamp. It is passed through to EventMetadata so
downstream consumers can distinguish real vs missing timestamps.