ClientLifecycleEventReceiver[optional TCP: TCPBackend ref]¶
Application-level callbacks for client-side TCP connections. One receiver per connection, no chaining.
Every callback has a default implementation except _on_connection_failure,
which must be implemented because ignoring a failed connection is never
correct.