Enum mongodb::error::WriteFailure
source · #[non_exhaustive]
pub enum WriteFailure {
WriteConcernError(WriteConcernError),
WriteError(WriteError),
}Expand description
An error that occurred when trying to execute a write operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WriteConcernError(WriteConcernError)
An error that occurred due to not being able to satisfy a write concern.
WriteError(WriteError)
An error that occurred during a write operation that wasn’t due to being unable to satisfy a write concern.
Trait Implementations§
source§impl Clone for WriteFailure
impl Clone for WriteFailure
source§fn clone(&self) -> WriteFailure
fn clone(&self) -> WriteFailure
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WriteFailure
impl Debug for WriteFailure
source§impl<'de> Deserialize<'de> for WriteFailure
impl<'de> Deserialize<'de> for WriteFailure
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more