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

No error occurred.

Out of memory.

An attempt was made to write to a database opened in read-only mode.

A 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.

An error occurred trying to read or write to a file (this could be file not found, permission denied, etc.)

A file was presented that doesn't appear to be an email message.

A file contains a message ID that is identical to a message already in the database.

The user erroneously passed a NULL pointer to a notmuch function.

A tag value is too long (exceeds TAG_MAX).

The notmuch_message_thaw function has been called more times than notmuch_message_freeze.

notmuch_database_end_atomic has been called more times than notmuch_database_begin_atomic.

The operation is not supported.

The operation requires a database upgrade.

There is a problem with the proposed path, e.g. a relative path passed to a function expecting an absolute path.

One 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]

[src]

Formats the value using the given formatter. Read more

impl Eq for notmuch_status_t
[src]

impl PartialEq for notmuch_status_t
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for notmuch_status_t
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for notmuch_status_t
[src]