Struct mongo_driver::BsoncError
[−]
[src]
pub struct BsoncError { /* fields omitted */ }
Error in the underlying C driver.
Methods
impl BsoncError
[src]
pub fn empty() -> BsoncError
[src]
pub fn is_empty(&self) -> bool
[src]
Wether the error has content.
pub fn domain(&self) -> MongoErrorDomain
[src]
The error's domain.
pub fn code(&self) -> MongoErrorCode
[src]
The error's code.
pub fn get_message(&self) -> Cow<str>
[src]
The error's message.
Trait Implementations
impl Debug for BsoncError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for BsoncError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for BsoncError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<BsoncError> for MongoError
[src]
fn from(error: BsoncError) -> MongoError
[src]
Performs the conversion.