Enum mongodb::error::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
Show 17 variants
InvalidArgument {
message: String,
},
Authentication {
message: String,
},
BsonDeserialization(Error),
BsonSerialization(Error),
BulkWrite(BulkWriteFailure),
Command(CommandError),
DnsResolve {
message: String,
},
Internal {
message: String,
},
Io(Arc<Error>),
ConnectionPoolCleared {
message: String,
},
InvalidResponse {
message: String,
},
ServerSelection {
message: String,
},
SessionsNotSupported,
InvalidTlsConfig {
message: String,
},
Write(WriteFailure),
Transaction {
message: String,
},
IncompatibleServer {
message: String,
},
}
Expand description
The types of errors that can occur.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
An invalid argument was provided.
This variant is marked as non-exhaustive
Fields of InvalidArgument
message: String
An error occurred while the Client
attempted to authenticate a
connection.
This variant is marked as non-exhaustive
Fields of Authentication
message: String
BsonDeserialization(Error)
Wrapper around bson::de::Error
.
Tuple Fields of BsonDeserialization
0: Error
BsonSerialization(Error)
Wrapper around bson::ser::Error
.
Tuple Fields of BsonSerialization
0: Error
BulkWrite(BulkWriteFailure)
An error occurred when trying to execute a write operation consisting of multiple writes.
Tuple Fields of BulkWrite
Command(CommandError)
The server returned an error to an attempted operation.
Tuple Fields of Command
0: CommandError
An error occurred during DNS resolution.
This variant is marked as non-exhaustive
Fields of DnsResolve
message: String
This variant is marked as non-exhaustive
Fields of Internal
message: String
Wrapper around std::io::Error
.
The connection pool for a server was cleared during operation execution due to a concurrent error, causing the operation to fail.
This variant is marked as non-exhaustive
Fields of ConnectionPoolCleared
message: String
The server returned an invalid reply to a database operation.
This variant is marked as non-exhaustive
Fields of InvalidResponse
message: String
The Client was not able to select a server for the operation.
This variant is marked as non-exhaustive
Fields of ServerSelection
message: String
The Client does not support sessions.
This variant is marked as non-exhaustive
Fields of InvalidTlsConfig
message: String
Write(WriteFailure)
An error occurred when trying to execute a write operation.
Tuple Fields of Write
0: WriteFailure
An error occurred during a transaction.
This variant is marked as non-exhaustive
Fields of Transaction
message: String
The server does not support the operation.
This variant is marked as non-exhaustive
Fields of IncompatibleServer
message: String
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more