pub struct WebSocketClosedEvent { /* private fields */ }Expand description
WebSocket close event.
Parsed from
[UnityCrossThreadLogger]GREConnection.HandleWebSocketClosed {...}
entries. The payload is the full parsed JSON from the log line and
always includes closeType, reason, and a nested tcpConn
object snapshot of the paired TCP connection (host/port/timing/ping
stats).
The parser is agnostic to closeType semantics — downstream
consumers classify close types per ADR-011.
Feeds the desktop connection health monitor; see feature spec
connection-health-indicator.md AC-DET-3.
Implementations§
Source§impl WebSocketClosedEvent
impl WebSocketClosedEvent
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 WebSocketClosedEvent
impl Clone for WebSocketClosedEvent
Source§fn clone(&self) -> WebSocketClosedEvent
fn clone(&self) -> WebSocketClosedEvent
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 WebSocketClosedEvent
impl Debug for WebSocketClosedEvent
Source§impl<'de> Deserialize<'de> for WebSocketClosedEvent
impl<'de> Deserialize<'de> for WebSocketClosedEvent
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 WebSocketClosedEvent
impl PartialEq for WebSocketClosedEvent
Source§fn eq(&self, other: &WebSocketClosedEvent) -> bool
fn eq(&self, other: &WebSocketClosedEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebSocketClosedEvent
impl Serialize for WebSocketClosedEvent
impl StructuralPartialEq for WebSocketClosedEvent
Auto Trait Implementations§
impl Freeze for WebSocketClosedEvent
impl RefUnwindSafe for WebSocketClosedEvent
impl Send for WebSocketClosedEvent
impl Sync for WebSocketClosedEvent
impl Unpin for WebSocketClosedEvent
impl UnsafeUnpin for WebSocketClosedEvent
impl UnwindSafe for WebSocketClosedEvent
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