TopologyUpdate
Mongo.TopologyUpdate.swift:4@frozen enum TopologyUpdate@frozen enum TopologyUpdateimport MongoA single-type module that declares the Mongo namespace.
import MongoClustersenum Mongocase primary(Primary, Peerlist)case slave(Slave, Peerlist)case ghostcase router(Router)case standalone(Standalone)protocol ReplicaTimingBaseline@frozen struct Hoststruct Peerlist@frozen struct PrimaryBaselineThe time when metadata for a primary was last updated, and the time of the last write logged on that primary.
struct Replica@frozen enum ReplicaSetMemberstruct ReplicaSetTerm@frozen struct ReplicaTimingsThe time when metadata for a server was last updated, and the time of the last write logged on the primary that has replicated to that server. Not to be confused with replica latency.
struct Router@frozen struct SecondaryBaselineThe time when metadata for a secondary was last updated, and the time of the last write logged on its primary that has replicated to that secondary.
struct SeedlistAn ordered set of hosts. Every host in this collection is statically guaranteed to be unique, and there will always be at least one host.
struct SelectionDiagnostics@frozen struct ServerCapabilities@frozen enum ServerDescription<Metadata, Owner> where Owner : AnyObjectstruct Standalone@frozen enum Topology<Owner> where Owner : AnyObject@frozen enum TopologyHint@frozen enum TopologyUpdateResult@frozen enum UndesirableA reason why a server was deemed undesirable.
@frozen enum UnreachableA reason why a server was deemed unreachable.
@frozen enum UnsuitableA reason why a replica was deemed unsuitable.
protocol Sendablestruct PrimaryAn update about about a replica set member that believes it is the primary.
@frozen enum SlaveAn update about about a replica set member that believes it is a slave.