Enum mongo_driver::MongoError [] [src]

pub enum MongoError {
    Bsonc(BsoncError),
    Decoder(DecoderError),
    Encoder(EncoderError),
    ValueAccessError(ValueAccessError),
    InvalidParams(InvalidParamsError),
}

Wrapper for all errors that can occur in the driver.

Variants

Error in the underlying C driver.

Error decoding Bson.

Error encoding Bson.

Error accessing a value on a Bson document.

Invalid params error that can be reported by the underlying C driver.

Trait Implementations

impl Display for MongoError
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for MongoError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for MongoError
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<DecoderError> for MongoError
[src]

[src]

Performs the conversion.

impl From<EncoderError> for MongoError
[src]

[src]

Performs the conversion.

impl From<ValueAccessError> for MongoError
[src]

[src]

Performs the conversion.

impl From<BsoncError> for MongoError
[src]

[src]

Performs the conversion.

impl From<InvalidParamsError> for MongoError
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for MongoError

impl Sync for MongoError