[−][src]Enum mongodb::error::ErrorKind
The types of errors that can occur.
Variants (Non-exhaustive)
AddrParse(AddrParseError)
Wrapper around std::net::AddrParseError
.
An invalid argument was provided to a database operation.
Fields of ArgumentError
message: String
An error occurred while the Client
attempted to authenticate a
connection.
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
.
Fields of InternalError
message: String
InvalidDnsName(InvalidDNSNameError)
Wrapper around webpki::InvalidDNSNameError
.
A hostname could not be parsed.
Fields of InvalidHostname
hostname: String
Io(Error)
Wrapper around std::io::Error
.
NoDnsResults(StreamAddress)
A database operation failed to send or receive a reply.
Fields of OperationError
message: String
OutOfRangeError(OutOfRangeError)
Data from a file could not be parsed.
The server returned an invalid reply to a database operation.
Fields of ResponseError
message: String
The Client was not able to select a server for the operation.
Fields of ServerSelectionError
message: String
An error occurred during SRV record lookup.
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
Fields of TxtLookupError
message: String
The Client timed out while checking out a connection from connection pool.
Fields of WaitQueueTimeoutError
address: StreamAddress
WriteError(WriteFailure)
An error occurred when trying to execute a write operation
Trait Implementations
impl Debug for ErrorKind
[src]
impl Display for ErrorKind
[src]
impl Error for ErrorKind
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl From<AddrParseError> for ErrorKind
[src]
fn from(from: AddrParseError) -> Self
[src]
impl From<Elapsed> for ErrorKind
[src]
impl From<Error> for ErrorKind
[src]
impl From<Error> for ErrorKind
[src]
impl From<Error> for ErrorKind
[src]
impl From<InvalidDNSNameError> for ErrorKind
[src]
fn from(from: InvalidDNSNameError) -> Self
[src]
impl From<OutOfRangeError> for ErrorKind
[src]
fn from(from: OutOfRangeError) -> Self
[src]
impl From<ResolveError> for ErrorKind
[src]
fn from(error: ResolveError) -> Self
[src]
impl From<TLSError> for ErrorKind
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,