NIOConnectionError
A representation of all the errors that happened during an attempt to connect to a given host and port.
struct NIOConnectionErrorA representation of all the errors that happened during an attempt to connect to a given host and port.
struct NIOConnectionErrorimport NIOPosixprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol Error : SendableA type representing an error value that can be thrown.
protocol Escapableprotocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
var connectionErrors: [SingleConnectionFailure] { get }The errors we encountered during the connection attempts.
var description: String { get }var dnsAAAAError: (any Error)? { get }The error we encountered doing the DNS AAAA lookup, if any.
var dnsAError: (any Error)? { get }The error we encountered doing the DNS A lookup, if any.
let host: StringThe hostname SwiftNIO was trying to connect to.
let port: IntThe port SwiftNIO was trying to connect to.