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
Database(Error)
A database connectivity error raised by the MongoDB driver.
MissingField(ValueAccessError)
An error when converting a BSON document to an Operation
and it has a missing field or
unexpected type.
UnknownOperation(String)
An error when converting a BSON document to an Operation
and it has an unsupported
operation type.
InvalidOperation
An error when converting an applyOps command with invalid documents.
Trait Implementations
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<ValueAccessError> for Error
[src]
fn from(original: ValueAccessError) -> Error
[src]
Performs the conversion.