[][src]Enum rawbson::RawError

pub enum RawError {
    UnexpectedType,
    MalformedValue(String),
    Utf8EncodingError(Vec<u8>),
}

Error to indicate that either a value was empty or it contained an unexpected type, for use with the direct getters.

Variants

UnexpectedType

Found a Bson value with the specified key, but not with the expected type

MalformedValue(String)

The found value was not well-formed

Utf8EncodingError(Vec<u8>)

Found a value where a utf-8 string was expected, but it was not valid utf-8. The error value contains the malformed data as a string.

Trait Implementations

impl Debug for RawError[src]

impl Display for RawError[src]

impl Error for RawError[src]

impl From<RawError> for Error[src]

impl<'a> From<ValueAccessError> for RawError[src]

impl PartialEq<RawError> for RawError[src]

impl StructuralPartialEq for RawError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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>,