Protocols
The following protocols are available globally.
-
A protocol for
See moreCommandEvent
handlers to implement.Declaration
Swift
public protocol CommandEventHandler : AnyObject
-
A protocol for handlers of events relating to SDAM to implement.
See moreDeclaration
Swift
public protocol SDAMEventHandler : AnyObject
-
Protocol indicating a set of options can be used to configure
See moreBSONEncoder
andBSONDecoder
.Declaration
Swift
public protocol CodingStrategyProvider
-
An empty protocol for encapsulating all errors that this package can throw.
Declaration
Swift
public protocol MongoError : LocalizedError
-
Protocol conformed to by errors that may contain error labels.
See moreDeclaration
Swift
public protocol LabeledError : MongoError
-
Protocol conformed to by errors returned from the MongoDB deployment.
Declaration
Swift
public protocol ServerError : LabeledError
-
A protocol describing errors caused by improper usage of the driver by the user.
Declaration
Swift
public protocol UserError : MongoError
-
The possible errors that can occur unexpectedly driver-side.
Declaration
Swift
public protocol RuntimeError : MongoError