[][src]Enum mongodb_h2co3::error::Error

pub enum Error {
    IoError(Error),
    EncoderError(EncoderError),
    DecoderError(DecoderError),
    OIDError(Error),
    FromHexError(DecodeError),
    WriteError(WriteException),
    BulkWriteError(BulkWriteException),
    ArgumentError(String),
    OperationError(String),
    ResponseError(String),
    CursorNotFoundError,
    PoisonLockError,
    CodedError(ErrorCode),
    EventListenerError(Option<Box<Error>>),
    MaliciousServerError(MaliciousServerErrorType),
    DefaultError(String),
}

The error type for MongoDB operations.

Variants

I/O operation errors of Read, Write, Seek, and associated traits.

A BSON struct could not be encoded.

A BSON struct could not be decoded.

An ObjectId could not be generated.

A hexadecimal string could not be converted to bytes.

A single-write operation failed.

A bulk-write operation failed due to one or more lower-level write-related errors.

An invalid function or operational argument was provided.

A database operation failed to send or receive a reply.

A database operation returned an invalid reply.

A cursor operation failed to return a cursor.

The application failed to secure a mutex due to a poisoned lock.

A server error with a given code.

The client was unable to emit the events to the listeners due to a poisoned lock; all event listeners were dropped, so they will have to be registered again. If the client is unable to emit a failure result, the error it failed to report is bundled into the EventListenerError.

The server that the client is attempting to authenticate to does not actually have the user's authentication information stored.

A standard error with a string description; a more specific error should generally be used.

Trait Implementations

impl<'a> From<Error> for Error
[src]

Performs the conversion.

impl<'a> From<&'a str> for Error
[src]

Performs the conversion.

impl From<String> for Error
[src]

Performs the conversion.

impl From<WriteException> for Error
[src]

Performs the conversion.

impl From<BulkWriteException> for Error
[src]

Performs the conversion.

impl From<EncoderError> for Error
[src]

Performs the conversion.

impl From<DecoderError> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<DecodeError> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

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

Performs the conversion.

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

Deprecating in 1.33.0

: replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

Performs the conversion.

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

Converts the given value to a String. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self