Enum oplog::Error [] [src]

pub enum Error {
    Database(Error),
    MissingField(ValueAccessError),
    UnknownOperation(String),
    InvalidOperation,
}

Error enumerates the list of possible error conditions when tailing an oplog.

Variants

A database connectivity error raised by the MongoDB driver.

An error when converting a BSON document to an Operation and it has a missing field or unexpected type.

An error when converting a BSON document to an Operation and it has an unsupported operation type.

An error when converting an applyOps command with invalid documents.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<ValueAccessError> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.