pub enum C2ConnectionLossReason {
PipeClosed,
Protocol,
RegularEventBackpressure,
Shutdown,
}Expand description
Why control_owner tore its connection down, attached to every request
still pending at that moment (C2ControlError::ConnectionLost). Logged
once at the teardown point instead of being silently swallowed.
Variants§
PipeClosed
The reader or writer half of the physical pipe ended (I/O error, EOF, or a downstream send failure into the writer task).
Protocol
The relay sent a frame or reply that violates the negotiated protocol: an unmatched request id, a route/incarnation mismatch, an unnegotiated-capability leak, an invalid topology frame, or a repeated handshake frame after authentication.
RegularEventBackpressure
The regular event consumer is gone: its channel closed because
the receiver was dropped. A merely full (but alive) regular
channel never reaches this reason – the offending event is
dropped and the connection stays open instead.
Shutdown
The local caller side shut the connection down deliberately (every
C2ControlHandle clone dropped) or the request id space was
exhausted.