Enum notmuch_sys::notmuch_status_t
[−]
[src]
#[repr(C)]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, NOTMUCH_STATUS_ILLEGAL_ARGUMENT, }
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.
@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_ERRORAn error occurred trying to read or write to a file (this could be file not found, permission denied, etc.)
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.
NOTMUCH_STATUS_ILLEGAL_ARGUMENTOne of the arguments violates the preconditions for the function, in a way not covered by a more specific argument.
Trait Implementations
impl Debug for notmuch_status_t[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for notmuch_status_t[src]
impl PartialEq for notmuch_status_t[src]
fn eq(&self, __arg_0: ¬much_status_t) -> bool[src]
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[src]
This method tests for !=.
impl Clone for notmuch_status_t[src]
fn clone(&self) -> notmuch_status_t[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more