@@ -183,7 +183,7 @@ enum QueryType {
183183
184184// MARK: - Query reply types
185185
186- public enum IPAddress : CustomStringConvertible {
186+ public enum IPAddress : Sendable , Equatable , CustomStringConvertible {
187187 case IPv4( String )
188188 case IPv6( String )
189189
@@ -197,7 +197,7 @@ public enum IPAddress: CustomStringConvertible {
197197 }
198198}
199199
200- public struct ARecord : CustomStringConvertible {
200+ public struct ARecord : Sendable , Equatable , CustomStringConvertible {
201201 public let address : IPAddress
202202 public let ttl : Int32 ?
203203
@@ -206,7 +206,7 @@ public struct ARecord: CustomStringConvertible {
206206 }
207207}
208208
209- public struct AAAARecord : CustomStringConvertible {
209+ public struct AAAARecord : Sendable , Equatable , CustomStringConvertible {
210210 public let address : IPAddress
211211 public let ttl : Int32 ?
212212
@@ -215,15 +215,15 @@ public struct AAAARecord: CustomStringConvertible {
215215 }
216216}
217217
218- public struct NSRecord : CustomStringConvertible {
218+ public struct NSRecord : Sendable , Equatable , CustomStringConvertible {
219219 public let nameservers : [ String ]
220220
221221 public var description : String {
222222 " \( Self . self) (nameservers= \( self . nameservers) ) "
223223 }
224224}
225225
226- public struct SOARecord : CustomStringConvertible {
226+ public struct SOARecord : Sendable , Equatable , CustomStringConvertible {
227227 public let mname : String ?
228228 public let rname : String ?
229229 public let serial : UInt32
@@ -237,15 +237,15 @@ public struct SOARecord: CustomStringConvertible {
237237 }
238238}
239239
240- public struct PTRRecord : CustomStringConvertible {
240+ public struct PTRRecord : Sendable , Equatable , CustomStringConvertible {
241241 public let names : [ String ]
242242
243243 public var description : String {
244244 " \( Self . self) (names= \( self . names) ) "
245245 }
246246}
247247
248- public struct MXRecord : CustomStringConvertible {
248+ public struct MXRecord : Sendable , Equatable , CustomStringConvertible {
249249 public let host : String
250250 public let priority : UInt16
251251
@@ -254,15 +254,15 @@ public struct MXRecord: CustomStringConvertible {
254254 }
255255}
256256
257- public struct TXTRecord {
257+ public struct TXTRecord : Sendable , Equatable {
258258 public let txt : String
259259
260260 public var description : String {
261261 " \( Self . self) ( \( self . txt) ) "
262262 }
263263}
264264
265- public struct SRVRecord : CustomStringConvertible {
265+ public struct SRVRecord : Sendable , Equatable , CustomStringConvertible {
266266 public let host : String
267267 public let port : UInt16
268268 public let weight : UInt16
@@ -273,7 +273,7 @@ public struct SRVRecord: CustomStringConvertible {
273273 }
274274}
275275
276- public struct NAPTRRecord : CustomStringConvertible {
276+ public struct NAPTRRecord : Sendable , Equatable , CustomStringConvertible {
277277 public let flags : String ?
278278 public let service : String ?
279279 public let regExp : String ?
0 commit comments