pub struct TcpConnectionCloseEvent { /* private fields */ }Expand description
TCP connection close event.
Parsed from [UnityCrossThreadLogger]Client.TcpConnection.Close {...}
entries. The payload is the full parsed JSON from the log line and
carries at minimum status and reason; abnormal closes also
include function, description, and a nested exception tree
(with InnerException.NativeErrorCode on Windows/macOS).
The parser is agnostic to status semantics — downstream consumers
classify close types per ADR-011. Bare-marker entries (no JSON
payload) do not produce this event.
Feeds the desktop connection health monitor; see feature spec
connection-health-indicator.md AC-DET-2.
Implementations§
Source§impl TcpConnectionCloseEvent
impl TcpConnectionCloseEvent
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 TcpConnectionCloseEvent
impl Clone for TcpConnectionCloseEvent
Source§fn clone(&self) -> TcpConnectionCloseEvent
fn clone(&self) -> TcpConnectionCloseEvent
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 TcpConnectionCloseEvent
impl Debug for TcpConnectionCloseEvent
Source§impl<'de> Deserialize<'de> for TcpConnectionCloseEvent
impl<'de> Deserialize<'de> for TcpConnectionCloseEvent
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 TcpConnectionCloseEvent
impl PartialEq for TcpConnectionCloseEvent
Source§fn eq(&self, other: &TcpConnectionCloseEvent) -> bool
fn eq(&self, other: &TcpConnectionCloseEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TcpConnectionCloseEvent
impl Serialize for TcpConnectionCloseEvent
impl StructuralPartialEq for TcpConnectionCloseEvent
Auto Trait Implementations§
impl Freeze for TcpConnectionCloseEvent
impl RefUnwindSafe for TcpConnectionCloseEvent
impl Send for TcpConnectionCloseEvent
impl Sync for TcpConnectionCloseEvent
impl Unpin for TcpConnectionCloseEvent
impl UnsafeUnpin for TcpConnectionCloseEvent
impl UnwindSafe for TcpConnectionCloseEvent
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