[][src]Enum wither::WitherError

pub enum WitherError {
    Mongo(Error),
    BsonOid(Error),
    BsonDe(Error),
    BsonSer(Error),
    ModelIdRequiredForOperation,
    ModelSerToDocument(ElementType),
    ServerFailedToReturnUpdatedDoc,
    ServerFailedToReturnObjectId,
    MigrationSetOrUnsetRequired,
}

Wither error variants.

Variants

Mongo(Error)

An error from the underlying mongodb driver.

BsonOid(Error)

An error related to BSON OID construction and generation.

BsonDe(Error)

A BSON deserialization error.

BsonSer(Error)

A BSON serialization error.

ModelIdRequiredForOperation

An error indicating that an ObjectId is required for the requested operation.

ModelSerToDocument(ElementType)

An error indicating that a model was serialized to a BSON variant other than a document.

ServerFailedToReturnUpdatedDoc

An error indicating that the server failed to return a document after an update.

ServerFailedToReturnObjectId

An error indicating that the server failed to return an ObjectId.

MigrationSetOrUnsetRequired

An error indicating that one of $set or $unset must be specified for a migration.

Trait Implementations

impl Debug for WitherError[src]

impl Display for WitherError[src]

impl Error for WitherError[src]

impl From<Error> for WitherError[src]

impl From<Error> for WitherError[src]

impl From<Error> for WitherError[src]

impl From<Error> for WitherError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,