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

pub struct WriteConcernError {
    pub code: i32,
    pub details: WriteConcern,
    pub message: String,
}

The error struct for a write-concern related error.

Fields

code: i32details: WriteConcernmessage: String

Methods

impl WriteConcernError[src]

pub fn new<T: ToString>(
    code: i32,
    details: WriteConcern,
    message: T
) -> WriteConcernError
[src]

Returns a new WriteConcernError containing the provided error information.

pub fn parse(
    error: Document,
    write_concern: WriteConcern
) -> Result<WriteConcernError>
[src]

Parses a Bson document into a WriteConcernError with the provided write concern.

Trait Implementations

impl Clone for WriteConcernError[src]

impl PartialEq<WriteConcernError> for WriteConcernError[src]

impl Debug for WriteConcernError[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> 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