TopologyVersion
Mongo.TopologyVersion.swift:6@frozen struct TopologyVersion@frozen struct TopologyVersionimport MongoA single-type module that declares the Mongo namespace.
import MongoDriverenum Mongoprotocol ExecutionPolicyprotocol Failpoint : BSONEncodable, Sendableprotocol ImplicitSessionCommand<Response> : Mongo.CommandA type that can encode a MongoDB command that can be run as part of a session, which can be implicitly generated if the command is sent to a deployment at large.
protocol IterableCommand<Element> : Mongo.Commandprotocol MonitorEventType : Sendableprotocol RetryableError : Errorprotocol TransactableCommand<Response> : Mongo.Command@frozen enum AbortionStatusAn outcome of aborting a Transaction.
struct AuthenticationErrorstruct AuthenticationUnsupportedErrorstruct ClusterTime@frozen enum CommitStatusAn outcome of committing a Transaction.
@frozen enum ConfigureFailpoint<Options> where Options : Mongo.FailpointThe MongoDB configureFailPoint command.
final class ConnectionA connection to a server that was created from a connection pool.
final actor ConnectionPoolA thread-safe reference type that maintains connections to a particular mongod or mongos host, services connection requests, and serves as a delegate for a server monitoring task.
struct ConnectionPoolDrainedError@frozen struct ConnectionPoolSettingsstruct ConnectionPoolTimeoutErrorstruct Cursor<BatchElement> where BatchElement : BSONDecodable, BatchElement : Sendable@frozen struct CursorIdentifierErrorstruct CursorIteratorA cursor iterable is an immutable (but non-Sendable) structure containing all of the information needed to get(more:) data from a server.
enum CursorLifecycle@frozen struct Deadlinesfinal actor DeploymentA type that models the state of a MongoDB deployment.
struct DeploymentStateError<Underlying> where Underlying : Error@frozen struct DriverTimeoutErrorA command was timed-out by the driver because the its deadline has already passed.
struct FailCommandSee: https://github.com/mongodb/mongo/wiki/The-%22failCommand%22-fail-point
@frozen struct GetMore<Element> where Element : BSONDecodable, Element : Sendable@frozen struct KillCursorsstruct KillCursorsResponse@frozen struct MonitorEvent<Type> where Type : Mongo.MonitorEventType@frozen enum MonitorServicestruct PingThe MongoDB ping command.
enum PolicyError@frozen enum ReadPreferencestruct ReadPreferenceErrorstruct RefreshSessionsstruct ReplicaSetConfigurationstruct ReplicaSetGetConfiguration@frozen struct Reply@frozen enum ReplyErrorstruct SASLConversationErrorstruct ServerErrorfinal class SessionTracks a session on a MongoDB server. Sessions have reference semantics.
@frozen struct SessionIdentifierstruct SessionLabelsLabels to be added to a command run as part of a logical session.
final actor SessionPoolAn interface for creating driver sessions.
struct SessionsUnsupportedErrorfinal class SnapshotSessionstruct Transactionstruct TransactionInProgressError@frozen enum TransactionLabels@frozen enum TransactionPhase@frozen enum TransactionResult<Success>@frozen struct TransactionStatestruct TransactionsUnsupportedErrorstruct VersionRequirementErrortypealias SourceLocation = (file: StaticString, line: Int)protocol Sendableprotocol BSONDecodableA 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> : BSONDecodableA type that can be decoded from a BSON dictionary-decoder.
protocol BSONDocumentEncodable<CodingKey> : BSONEncodableA 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 BSONEncodableA type that can be encoded to a BSON variant value.
protocol BitwiseCopyableprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapableinit(bson: BSON.DocumentDecoder<CodingKey>) throws init(process: BSON.Identifier, counter: Int64) let counter: Int64let process: BSON.Identifierfunc encode(to bson: inout BSON.DocumentEncoder<CodingKey>) @frozen enum CodingKeyinit(bson: BSON.AnyValue) throws init(bson: BSON.Document) throws