Enum mungos::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
sourceimpl Clone for WriteFailure
impl Clone for WriteFailure
sourcefn clone(&self) -> WriteFailure
fn clone(&self) -> WriteFailure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more