Enum mongodb::error::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
Show 25 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
Wrapper around std::net::AddrParseError
.
Tuple Fields of AddrParse
An invalid argument was provided to a database operation.
This variant is marked as non-exhaustive
Fields of ArgumentError
message: String
An error occurred while the Client
attempted to authenticate a
connection.
This variant is marked as non-exhaustive
Fields of AuthenticationError
message: String
Wrapper around bson::de::Error
.
Tuple Fields of BsonDecode
0: Error
Wrapper around bson::ser::Error
.
Tuple Fields of BsonEncode
0: Error
An error occurred when trying to execute a write operation consisting of multiple writes.
Tuple Fields of BulkWriteError
The server returned an error to an attempted operation.
Tuple Fields of CommandError
0: CommandError
Wrapper around trust_dns_resolver::error::ResolveError
.
Tuple Fields of DnsResolve
0: ResolveError
This variant is marked as non-exhaustive
Fields of InternalError
message: String
Wrapper around webpki::InvalidDNSNameError
.
Tuple Fields of InvalidDnsName
A hostname could not be parsed.
This variant is marked as non-exhaustive
Fields of InvalidHostname
hostname: String
Wrapper around std::io::Error
.
Tuple Fields of Io
0: Error
Tuple Fields of NoDnsResults
A database operation failed to send or receive a reply.
This variant is marked as non-exhaustive
Fields of OperationError
message: String
Tuple Fields of 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
Fields of ConnectionPoolClearedError
message: String
The server returned an invalid reply to a database operation.
This variant is marked as non-exhaustive
Fields of ResponseError
message: String
The Client was not able to select a server for the operation.
This variant is marked as non-exhaustive
Fields of ServerSelectionError
message: String
An error occurred during SRV record lookup.
This variant is marked as non-exhaustive
Fields of SrvLookupError
message: String
A timeout occurred before a Tokio task could be completed.
Tuple Fields of TokioTimeoutElapsed
0: Elapsed
Tuple Fields of RustlsConfig
0: TLSError
An error occurred during TXT record lookup
This variant is marked as non-exhaustive
Fields of TxtLookupError
message: String
The Client timed out while checking out a connection from connection pool.
This variant is marked as non-exhaustive
Fields of WaitQueueTimeoutError
address: StreamAddress
An error occurred when trying to execute a write operation
Tuple Fields of WriteError
0: WriteFailure
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.