[][src]Struct mongodb::coll::error::WriteException

pub struct WriteException {
    pub write_concern_error: Option<WriteConcernError>,
    pub write_error: Option<WriteError>,
    pub message: String,
}

The error type for Write-related MongoDB operations.

Fields

write_concern_error: Option<WriteConcernError>write_error: Option<WriteError>message: String

Methods

impl WriteException[src]

pub fn new(
    wc_err: Option<WriteConcernError>,
    w_err: Option<WriteError>
) -> WriteException
[src]

Returns a new WriteException containing the given errors.

pub fn with_bulk_exception(bulk_exception: BulkWriteException) -> WriteException[src]

Downgrades a BulkWriteException into a WriteException, retrieving the last write error to emulate the behavior of continue_on_error.

pub fn validate_write_result(
    result: Document,
    write_concern: WriteConcern
) -> Result<()>
[src]

Validates a single-write result.

Trait Implementations

impl From<WriteException> for Error[src]

impl Clone for WriteException[src]

impl PartialEq<WriteException> for WriteException[src]

impl Debug for WriteException[src]

impl Display for WriteException[src]

impl Error for WriteException[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self