Enum mongo_driver::MongoError
[−]
[src]
pub enum MongoError { Bsonc(BsoncError), Decoder(DecoderError), Encoder(EncoderError), ValueAccessError(ValueAccessError), InvalidParams(InvalidParamsError), }
Wrapper for all errors that can occur in the driver.
Variants
Bsonc(BsoncError)
Error in the underlying C driver.
Decoder(DecoderError)
Error decoding Bson.
Encoder(EncoderError)
Error encoding Bson.
ValueAccessError(ValueAccessError)
Error accessing a value on a Bson document.
InvalidParams(InvalidParamsError)
Invalid params error that can be reported by the underlying C driver.
Trait Implementations
impl Display for MongoError
[src]
impl Debug for MongoError
[src]
impl Error for MongoError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<DecoderError> for MongoError
[src]
fn from(error: DecoderError) -> MongoError
Performs the conversion.
impl From<EncoderError> for MongoError
[src]
fn from(error: EncoderError) -> MongoError
Performs the conversion.
impl From<ValueAccessError> for MongoError
[src]
fn from(error: ValueAccessError) -> MongoError
Performs the conversion.
impl From<BsoncError> for MongoError
[src]
fn from(error: BsoncError) -> MongoError
Performs the conversion.
impl From<InvalidParamsError> for MongoError
[src]
fn from(error: InvalidParamsError) -> MongoError
Performs the conversion.