[−][src]Enum mongodb::error::ErrorKind
The types of errors that can occur.
Variants
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(DecoderError)
Wrapper around bson::DecoderError
.
BsonEncode(EncoderError)
Wrapper around bson::EncoderError
.
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.
DnsName(InvalidDNSNameError)
Wrapper around webpki::InvalidDNSNameError
.
DnsResolve(ResolveError)
Wrapper around trust_dns_resolver::error::ResolveError
.
A hostname could not be parsed.
Fields of InvalidHostname
hostname: String
Io(Error)
Wrapper around std::io::Error
.
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
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<DecoderError> for ErrorKind
[src]
fn from(from: DecoderError) -> Self
[src]
impl From<EncoderError> for ErrorKind
[src]
fn from(from: EncoderError) -> Self
[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]
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> AsFail for T where
T: Fail,
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
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<E> Fail for E where
E: 'static + Error + Send + Sync,
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn backtrace(&self) -> Option<&Backtrace>
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
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>,