Enum notmuch_sys::notmuch_status_t
[−]
[src]
pub enum notmuch_status_t {
SUCCESS,
OUT_OF_MEMORY,
READ_ONLY_DATABASE,
XAPIAN_EXCEPTION,
FILE_ERROR,
FILE_NOT_EMAIL,
DUPLICATE_MESSAGE_ID,
NULL_POINTER,
TAG_TOO_LONG,
UNBALANCED_FREEZE_THAW,
UNBALANCED_ATOMIC,
UNSUPPORTED_OPERATION,
UPGRADE_REQUIRED,
PATH_ERROR,
}Status codes used for the return values of most functions.
A zero value (SUCCESS) indicates that the function completed without error. Any other value indicates an error.
Variants
SUCCESSNo error occurred.
OUT_OF_MEMORYOut of memory.
READ_ONLY_DATABASEAn attempt was made to write to a database opened in read-only mode.
XAPIAN_EXCEPTIONA Xapian exception occurred.
FILE_ERRORAn error occurred trying to read or write to a file (this could be file not found, permission denied, etc.)
@todo We don't really want to expose this lame XAPIAN_EXCEPTION value. Instead we should map to things like DATABASE_LOCKED or whatever.
FILE_NOT_EMAILA file was presented that doesn't appear to be an email message.
DUPLICATE_MESSAGE_IDA file contains a message ID that is identical to a message already in the database.
NULL_POINTERThe user erroneously passed a NULL pointer to a notmuch function.
TAG_TOO_LONGA tag value is too long (exceeds TAG_MAX).
UNBALANCED_FREEZE_THAWThe notmuch_message_thaw function has been called more times
than notmuch_message_freeze.
UNBALANCED_ATOMICnotmuch_database_end_atomic has been called more times than
notmuch_database_begin_atomic.
UNSUPPORTED_OPERATIONThe operation is not supported.
UPGRADE_REQUIREDThe operation requires a database upgrade.
PATH_ERRORThere is a problem with the proposed path, e.g. a relative path passed to a function expecting an absolute path.
Trait Implementations
impl PartialEq for notmuch_status_t[src]
fn eq(&self, __arg_0: ¬much_status_t) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.