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
NotPresent
Cannot find the expected field with the specified key
UnexpectedType
Found a Bson value with the specified key, but not with the expected type
Trait Implementations
impl PartialEq for ValueAccessError
[src]
impl PartialEq for ValueAccessError
fn eq(&self, other: &ValueAccessError) -> bool
[src]
fn eq(&self, other: &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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for ValueAccessError
[src]
impl Debug for ValueAccessError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ValueAccessError
[src]
impl Display for ValueAccessError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ValueAccessError
[src]
impl Error for ValueAccessError
Auto Trait Implementations
impl Send for ValueAccessError
impl Send for ValueAccessError
impl Sync for ValueAccessError
impl Sync for ValueAccessError