Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Sources/AsyncDNSResolver/AsyncDNSResolver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ enum QueryType {

// MARK: - Query reply types

public enum IPAddress: CustomStringConvertible {
public enum IPAddress: Sendable, Equatable, CustomStringConvertible {
case IPv4(String)
case IPv6(String)

Expand All @@ -197,7 +197,7 @@ public enum IPAddress: CustomStringConvertible {
}
}

public struct ARecord: CustomStringConvertible {
public struct ARecord: Sendable, Equatable, CustomStringConvertible {
public let address: IPAddress
public let ttl: Int32?

Expand All @@ -206,7 +206,7 @@ public struct ARecord: CustomStringConvertible {
}
}

public struct AAAARecord: CustomStringConvertible {
public struct AAAARecord: Sendable, Equatable, CustomStringConvertible {
public let address: IPAddress
public let ttl: Int32?

Expand All @@ -215,15 +215,15 @@ public struct AAAARecord: CustomStringConvertible {
}
}

public struct NSRecord: CustomStringConvertible {
public struct NSRecord: Sendable, Equatable, CustomStringConvertible {
public let nameservers: [String]

public var description: String {
"\(Self.self)(nameservers=\(self.nameservers))"
}
}

public struct SOARecord: CustomStringConvertible {
public struct SOARecord: Sendable, Equatable, CustomStringConvertible {
public let mname: String?
public let rname: String?
public let serial: UInt32
Expand All @@ -237,15 +237,15 @@ public struct SOARecord: CustomStringConvertible {
}
}

public struct PTRRecord: CustomStringConvertible {
public struct PTRRecord: Sendable, Equatable, CustomStringConvertible {
public let names: [String]

public var description: String {
"\(Self.self)(names=\(self.names))"
}
}

public struct MXRecord: CustomStringConvertible {
public struct MXRecord: Sendable, Equatable, CustomStringConvertible {
public let host: String
public let priority: UInt16

Expand All @@ -254,15 +254,15 @@ public struct MXRecord: CustomStringConvertible {
}
}

public struct TXTRecord {
public struct TXTRecord: Sendable, Equatable {
public let txt: String

public var description: String {
"\(Self.self)(\(self.txt))"
}
}

public struct SRVRecord: CustomStringConvertible {
public struct SRVRecord: Sendable, Equatable, CustomStringConvertible {
public let host: String
public let port: UInt16
public let weight: UInt16
Expand All @@ -273,7 +273,7 @@ public struct SRVRecord: CustomStringConvertible {
}
}

public struct NAPTRRecord: CustomStringConvertible {
public struct NAPTRRecord: Sendable, Equatable, CustomStringConvertible {
public let flags: String?
public let service: String?
public let regExp: String?
Expand Down