pub struct ConnectionErrorEvent { /* private fields */ }Expand description
Connection error event (error-path markers).
Parsed from four JSON-bearing error markers under
[UnityCrossThreadLogger]:
| Marker | error_type |
|---|---|
TcpConnection.ProcessRead.Exception | tcp_process_read_exception |
Client.TcpConnection.ProcessFailure | tcp_process_failure_socket_error |
GREConnection.MatchDoorConnectionError | gre_match_door_connection_error |
TcpConnection.Close.Exception | tcp_close_exception |
The payload shape is
{"error_type": "<discriminant>", "payload": <parsed>}, where
<parsed> is the full parsed JSON from the log line preserved
unchanged. Bare-marker entries (no JSON payload) do not produce this
event; the paired JSON line on a subsequent entry emits it.
The parser is agnostic to inner error-code semantics — downstream
consumers match on error_type per ADR-011.
Feeds the desktop connection health monitor; see feature spec
connection-health-indicator.md AC-DET-5.
Implementations§
Source§impl ConnectionErrorEvent
impl ConnectionErrorEvent
Sourcepub fn new(metadata: EventMetadata, payload: Value) -> Self
pub fn new(metadata: EventMetadata, payload: Value) -> Self
Constructs a new event with the given metadata and payload.
Sourcepub fn metadata(&self) -> &EventMetadata
pub fn metadata(&self) -> &EventMetadata
Returns the shared event metadata.
Trait Implementations§
Source§impl Clone for ConnectionErrorEvent
impl Clone for ConnectionErrorEvent
Source§fn clone(&self) -> ConnectionErrorEvent
fn clone(&self) -> ConnectionErrorEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionErrorEvent
impl Debug for ConnectionErrorEvent
Source§impl<'de> Deserialize<'de> for ConnectionErrorEvent
impl<'de> Deserialize<'de> for ConnectionErrorEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConnectionErrorEvent
impl PartialEq for ConnectionErrorEvent
Source§fn eq(&self, other: &ConnectionErrorEvent) -> bool
fn eq(&self, other: &ConnectionErrorEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConnectionErrorEvent
impl Serialize for ConnectionErrorEvent
impl StructuralPartialEq for ConnectionErrorEvent
Auto Trait Implementations§
impl Freeze for ConnectionErrorEvent
impl RefUnwindSafe for ConnectionErrorEvent
impl Send for ConnectionErrorEvent
impl Sync for ConnectionErrorEvent
impl Unpin for ConnectionErrorEvent
impl UnsafeUnpin for ConnectionErrorEvent
impl UnwindSafe for ConnectionErrorEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more