[][src]Enum mongodb::ordered::ValueAccessError

pub enum ValueAccessError {
    NotPresent,
    UnexpectedType,
}

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

Variants

Cannot find the expected field with the specified key

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

Trait Implementations

impl Error for ValueAccessError
[src]

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

impl PartialEq<ValueAccessError> for ValueAccessError
[src]

This method tests for !=.

impl Display for ValueAccessError
[src]

impl Debug for ValueAccessError
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

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.

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

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

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

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.

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

impl<T> Same for T

Should always be Self