Enum bson::ordered::ValueAccessError [] [src]

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

NotPresentUnexpectedType

Trait Implementations

impl PartialEq for ValueAccessError
[src]

fn eq(&self, __arg_0: &ValueAccessError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for ValueAccessError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for ValueAccessError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for ValueAccessError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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