Enum polodb_bson::error::BsonErr[][src]

pub enum BsonErr {
    ParseError(String),
    ParseIntError(Box<ParseIntError>),
    DecodeIntUnknownByte,
    IOErr(Box<Error>),
    UTF8Error(Box<Utf8Error>),
    FromUTF8Error(Box<FromUtf8Error>),
    TypeNotComparable(StringString),
    RmpWriteError(Box<ValueWriteError>),
    RmpReadError(Box<ValueReadError>),
    RmpMarkerReadError(Box<MarkerReadError>),
    DecodeStringErr(String),
}

Variants

ParseError(String)

Tuple Fields of ParseError

0: String
ParseIntError(Box<ParseIntError>)

Tuple Fields of ParseIntError

0: Box<ParseIntError>
DecodeIntUnknownByte
IOErr(Box<Error>)

Tuple Fields of IOErr

0: Box<Error>
UTF8Error(Box<Utf8Error>)

Tuple Fields of UTF8Error

0: Box<Utf8Error>
FromUTF8Error(Box<FromUtf8Error>)

Tuple Fields of FromUTF8Error

0: Box<FromUtf8Error>
TypeNotComparable(StringString)

Tuple Fields of TypeNotComparable

0: String1: String
RmpWriteError(Box<ValueWriteError>)

Tuple Fields of RmpWriteError

0: Box<ValueWriteError>
RmpReadError(Box<ValueReadError>)

Tuple Fields of RmpReadError

0: Box<ValueReadError>
RmpMarkerReadError(Box<MarkerReadError>)

Tuple Fields of RmpMarkerReadError

0: Box<MarkerReadError>
DecodeStringErr(String)

Tuple Fields of DecodeStringErr

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

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

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.