AS
Describes an Autonomous System (AS).
@frozen struct AS
Describes an Autonomous System (AS).
@frozen struct AS
import Firewalls
import IP
This Foundation-free module provides tools for parsing and formatting IP addresses, and data structures for performing efficient IP address lookups.
@frozen enum IP
The namespace for IP types.
@frozen struct ASN
An Autonomous System Number (ASN).
@frozen enum Claimant
@frozen struct Firewall
@frozen struct Table<Color> where Color : BSON.BinaryPackable
A data structure for efficient IP address lookups.
protocol BSONDecodable
A type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
protocol BSONDocumentDecodable<CodingKey> : BSONDecodable
A type that can be decoded from a BSON dictionary-decoder.
protocol BSONDocumentEncodable<CodingKey> : BSONEncodable
A type that can be encoded to a BSON document. This protocol exists to allow types that define CodingKey
to encode themselves using a BSON.DocumentEncoder
.
protocol BSONEncodable
A type that can be encoded to a BSON variant value.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(bson: BSON.DocumentDecoder<CodingKey>) throws
init(number: ASN, domain: String, name: String)
init(number: IP.ASN, metadata: Metadata)
var domain: String
var metadata: Metadata { get }
var name: String
let number: ASN
func encode(to bson: inout BSON.DocumentEncoder<CodingKey>)
@frozen enum CodingKey
@frozen struct Metadata
The human-readable name
and associated domain
of an Autonomous System.
init(bson: BSON.AnyValue) throws
init(bson: BSON.Document) throws
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.