Enum musty::MustyError
source · pub enum MustyError {
Mongo(Error),
MongoServerFailedToReturnUpdatedDoc,
MongoServerFailedToReturnObjectId,
MongoModelIdRequiredForOperation,
ObjectId(Error),
BsonSerialization(Error),
BsonDeserialization(Error),
Other(Error),
}Expand description
Error types used by musty.
Variants§
Mongo(Error)
Available on crate feature
mongodb only.MongoServerFailedToReturnUpdatedDoc
Available on crate feature
mongodb only.MongoServerFailedToReturnObjectId
Available on crate feature
mongodb only.MongoModelIdRequiredForOperation
Available on crate feature
mongodb only.ObjectId(Error)
Available on crate features
bson or mongodb only.BsonSerialization(Error)
Available on crate features
bson or mongodb only.BsonDeserialization(Error)
Available on crate features
bson or mongodb only.Other(Error)
Trait Implementations§
source§impl Debug for MustyError
impl Debug for MustyError
source§impl Display for MustyError
impl Display for MustyError
source§impl Error for MustyError
impl Error for MustyError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()