Structureswift-mongodb 0.27.0MongoDriver->Mongo
ReplicaSetConfiguration
Mongo.ReplicaSetConfiguration.swift:6struct ReplicaSetConfiguration
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (58) members.
Protocols
protocol ExecutionPolicy
protocol Failpoint
protocol ImplicitSessionCommand<Response>
A 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>
protocol MonitorEventType
protocol RetryableError
protocol TransactableCommand<Response>
Types
enum AbortionStatus
An outcome of aborting a
Transaction
.struct AuthenticationError
struct AuthenticationUnsupportedError
struct ClusterTime
enum CommitStatus
An outcome of committing a
Transaction
.enum ConfigureFailpoint<Options>
The MongoDB
configureFailPoint
command.class Connection
A connection to a server that was created from a connection pool.
actor ConnectionPool
A thread-safe reference type that maintains connections to a particular
mongod
ormongos
host, services connection requests, and serves as a delegate for a server monitoring task.struct ConnectionPoolDrainedError
struct ConnectionPoolSettings
struct ConnectionPoolTimeoutError
struct Cursor<BatchElement>
struct CursorIdentifierError
struct CursorIterator
A cursor iterable is an immutable (but non-
Sendable
) structure containing all of the information needed toget(more:)
data from a server.enum CursorLifecycle
struct Deadlines
actor Deployment
A type that models the state of a MongoDB deployment.
struct DeploymentStateError<Underlying>
struct DriverTimeoutError
A command was timed-out by the driver because the its deadline has already passed.
struct FailCommand
See: https://github.com/mongodb/mongo/wiki/The-%22failCommand%22-fail-point
struct GetMore<Element>
struct KillCursors
struct KillCursorsResponse
struct MonitorEvent<Type>
enum MonitorService
struct Ping
The MongoDB
ping
command.enum PolicyError
enum ReadPreference
struct ReadPreferenceError
struct RefreshSessions
struct ReplicaSetGetConfiguration
struct Reply
enum ReplyError
struct SASLConversationError
struct ServerError
class Session
Tracks a session on a MongoDB server. Sessions have reference semantics.
struct SessionIdentifier
struct SessionLabels
Labels to be added to a command run as part of a logical session.
actor SessionPool
An interface for creating driver sessions.
struct SessionsUnsupportedError
class SnapshotSession
struct TopologyVersion
struct Transaction
struct TransactionInProgressError
enum TransactionLabels
enum TransactionPhase
enum TransactionResult<Success>
struct TransactionState
struct TransactionsUnsupportedError
struct VersionRequirementError
Typealiases
Citizens in MongoDriver
Conformances
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>
A type that can be decoded from a BSON dictionary-decoder.
protocol BSONDocumentEncodable<CodingKey>
A type that can be encoded to a BSON document. This protocol exists to allow types that define
CodingKey
to encode themselves using aBSON.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 Sendable
Types
struct Citizen
A configuration for a citizen member. Citizens always cast at least one vote for primary, and can themselves become primary, based on their priority.
enum CodingKey
struct Member
struct Replica
struct Resident
A configuration for a resident member. Residents can vote for primary, but cannot become primary. Residents can be hidden and delayed.
enum Rights
Type members
init(bson: BSON.DocumentDecoder<CodingKey>
) throws init(name: String, writeConcernMajorityJournalDefault: Bool, members: [Member], version: Int, term: Int?
)
Instance members
let members: [Member]
let name: String
let term: Int?
let version: Int
let writeConcernMajorityJournalDefault: Bool
func encode(to: inout BSON.DocumentEncoder<CodingKey>
)
Type features
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.