Expand description
Contains the Error
and Result
types that mongodb
uses.
Structs§
- Bulk
Write Error - An error that occurred while executing
bulk_write
. - Command
Error - An error that occurred due to a database command failing.
- Error
- An error that can occur in the
mongodb
crate. The innerErrorKind
is wrapped in anArc
to allow the errors to be cloned. - Indexed
Write Error - An individual write error that occurred during an
insert_many
operation. - Insert
Many Error - The set of errors that occurred during a call to
insert_many
. - Write
Concern Error - An error that occurred due to not being able to satisfy a write concern.
- Write
Error - An error that occurred during a write operation that wasn’t due to being unable to satisfy a write concern.
Enums§
- Error
Kind - The types of errors that can occur.
- Grid
FsError Kind - An error that occurred during a GridFS operation.
- Grid
FsFile Identifier - An identifier for a file stored in a GridFS bucket.
- Partial
Bulk Write Result - The results of a partially-successful
bulk_write
operation. - Write
Failure - An error that occurred when trying to execute a write operation.
Constants§
- RETRYABLE_
WRITE_ ERROR - Retryable write error label. This label will be added to an error when the error is write-retryable.
- TRANSIENT_
TRANSACTION_ ERROR - Transient transaction error label. This label will be added to a network error or server selection error that occurs during a transaction.
- UNKNOWN_
TRANSACTION_ COMMIT_ RESULT - Unknown transaction commit result error label. This label will be added to a server selection error, network error, write-retryable error, MaxTimeMSExpired error, or write concern failed/timeout during a commitTransaction.
Type Aliases§
- Result
- The result type for all methods that can return an error in the
mongodb
crate.