Enum mongodb::error::ErrorKind [−][src]
#[non_exhaustive] pub enum ErrorKind {}Show 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, },
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
Show fields
Fields of InvalidArgument
message: String
An error occurred while the Client
attempted to authenticate a
connection.
This variant is marked as non-exhaustive
Show fields
Fields of Authentication
message: String
BsonDeserialization(Error)
Wrapper around bson::de::Error
.
BsonSerialization(Error)
Wrapper around bson::ser::Error
.
BulkWrite(BulkWriteFailure)
An error occurred when trying to execute a write operation consisting of multiple writes.
Command(CommandError)
The server returned an error to an attempted operation.
An error occurred during DNS resolution.
This variant is marked as non-exhaustive
Show fields
Fields of DnsResolve
message: String
This variant is marked as non-exhaustive
Show fields
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
Show fields
Fields of ConnectionPoolCleared
message: String
The server returned an invalid reply to a database operation.
This variant is marked as non-exhaustive
Show fields
Fields of InvalidResponse
message: String
The Client was not able to select a server for the operation.
This variant is marked as non-exhaustive
Show fields
Fields of ServerSelection
message: String
The Client does not support sessions.
This variant is marked as non-exhaustive
Show fields
Fields of InvalidTlsConfig
message: String
Write(WriteFailure)
An error occurred when trying to execute a write operation.
An error occurred during a transaction.
This variant is marked as non-exhaustive
Show fields
Fields of Transaction
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V