Enum mongodb::error::WriteFailure [−][src]
#[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
Auto Trait Implementations
impl RefUnwindSafe for WriteFailure
impl Send for WriteFailure
impl Sync for WriteFailure
impl Unpin for WriteFailure
impl UnwindSafe for WriteFailure
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V