[][src]Enum mongodb::error::ErrorKind

pub enum ErrorKind {
    AddrParse(AddrParseError),
    ArgumentError {
        message: String,
    },
    AuthenticationError {
        message: String,
    },
    BsonDecode(DecoderError),
    BsonEncode(EncoderError),
    BulkWriteError(BulkWriteFailure),
    CommandError(CommandError),
    DnsName(InvalidDNSNameError),
    DnsResolve(ResolveError),
    InvalidHostname {
        hostname: String,
    },
    Io(Error),
    OperationError {
        message: String,
    },
    OutOfRangeError(OutOfRangeError),
    ParseError {
        data_type: String,
        file_path: String,
    },
    ResponseError {
        message: String,
    },
    ServerSelectionError {
        message: String,
    },
    SrvLookupError {
        message: String,
    },
    TxtLookupError {
        message: String,
    },
    WaitQueueTimeoutError {
        address: StreamAddress,
    },
    WriteError(WriteFailure),
}

The types of errors that can occur.

Variants

AddrParse(AddrParseError)

Wrapper around std::net::AddrParseError.

ArgumentError

An invalid argument was provided to a database operation.

Fields of ArgumentError

message: String
AuthenticationError

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.

Wrapper around webpki::InvalidDNSNameError.

DnsResolve(ResolveError)

Wrapper around trust_dns_resolver::error::ResolveError.

InvalidHostname

A hostname could not be parsed.

Fields of InvalidHostname

hostname: String
Io(Error)

Wrapper around std::io::Error.

OperationError

A database operation failed to send or receive a reply.

Fields of OperationError

message: String
OutOfRangeError(OutOfRangeError)
ParseError

Data from a file could not be parsed.

Fields of ParseError

data_type: Stringfile_path: String
ResponseError

The server returned an invalid reply to a database operation.

Fields of ResponseError

message: String
ServerSelectionError

The Client was not able to select a server for the operation.

Fields of ServerSelectionError

message: String
SrvLookupError

An error occurred during SRV record lookup.

Fields of SrvLookupError

message: String
TxtLookupError

An error occurred during TXT record lookup

Fields of TxtLookupError

message: String
WaitQueueTimeoutError

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]

impl From<AddrParseError> for ErrorKind[src]

impl From<DecoderError> for ErrorKind[src]

impl From<EncoderError> for ErrorKind[src]

impl From<Error> for ErrorKind[src]

impl From<InvalidDNSNameError> for ErrorKind[src]

impl From<OutOfRangeError> for ErrorKind[src]

impl From<ResolveError> for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,