Enum mongodb::error::ErrorKind [−][src]
#[non_exhaustive] pub enum ErrorKind {}Show variants
AddrParse(AddrParseError), ArgumentError { message: String, }, AuthenticationError { message: String, }, BsonDecode(Error), BsonEncode(Error), BulkWriteError(BulkWriteFailure), CommandError(CommandError), DnsResolve(ResolveError), InternalError { message: String, }, InvalidDnsName(InvalidDNSNameError), InvalidHostname { hostname: String, }, Io(Error), NoDnsResults(StreamAddress), OperationError { message: String, }, OutOfRangeError(OutOfRangeError), ParseError { data_type: String, file_path: String, }, ConnectionPoolClearedError { message: String, }, ResponseError { message: String, }, ServerSelectionError { message: String, }, SrvLookupError { message: String, }, TokioTimeoutElapsed(Elapsed), RustlsConfig(TLSError), TxtLookupError { message: String, }, WaitQueueTimeoutError { address: StreamAddress, }, WriteError(WriteFailure),
Expand description
The types of errors that can occur.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AddrParse(AddrParseError)
Wrapper around std::net::AddrParseError
.
An invalid argument was provided to a database operation.
This variant is marked as non-exhaustive
Show fields
Fields of ArgumentError
message: String
An error occurred while the Client
attempted to authenticate a
connection.
This variant is marked as non-exhaustive
Show fields
Fields of AuthenticationError
message: String
BsonDecode(Error)
Wrapper around bson::de::Error
.
BsonEncode(Error)
Wrapper around bson::ser::Error
.
BulkWriteError(BulkWriteFailure)
An error occurred when trying to execute a write operation consisting of multiple writes.
CommandError(CommandError)
The server returned an error to an attempted operation.
DnsResolve(ResolveError)
Wrapper around trust_dns_resolver::error::ResolveError
.
This variant is marked as non-exhaustive
Show fields
Fields of InternalError
message: String
InvalidDnsName(InvalidDNSNameError)
Wrapper around webpki::InvalidDNSNameError
.
A hostname could not be parsed.
This variant is marked as non-exhaustive
Show fields
Fields of InvalidHostname
hostname: String
Io(Error)
Wrapper around std::io::Error
.
NoDnsResults(StreamAddress)
A database operation failed to send or receive a reply.
This variant is marked as non-exhaustive
Show fields
Fields of OperationError
message: String
OutOfRangeError(OutOfRangeError)
Data from a file could not be parsed.
This variant is marked as non-exhaustive
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 ConnectionPoolClearedError
message: String
The server returned an invalid reply to a database operation.
This variant is marked as non-exhaustive
Show fields
Fields of ResponseError
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 ServerSelectionError
message: String
An error occurred during SRV record lookup.
This variant is marked as non-exhaustive
Show fields
Fields of SrvLookupError
message: String
TokioTimeoutElapsed(Elapsed)
A timeout occurred before a Tokio task could be completed.
RustlsConfig(TLSError)
An error occurred during TXT record lookup
This variant is marked as non-exhaustive
Show fields
Fields of TxtLookupError
message: String
The Client timed out while checking out a connection from connection pool.
This variant is marked as non-exhaustive
Show fields
Fields of WaitQueueTimeoutError
address: StreamAddress
WriteError(WriteFailure)
An error occurred when trying to execute a write operation
Trait Implementations
use the Display impl or to_string()
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind