Enum fswatch::FswStatus [] [src]

pub enum FswStatus {
    Ok,
    UnknownError,
    SessionUnknown,
    MonitorAlreadyExists,
    Memory,
    UnknownMonitorType,
    CallbackNotSet,
    PathsNotSet,
    MissingContext,
    InvalidPath,
    InvalidCallback,
    InvalidLatency,
    InvalidRegex,
    MonitorAlreadyRunning,
    UnknownValue,
    InvalidProprety,
}

Status codes from fswatch.

Most operations return a status code, either Ok or an error. A successful operation that returns Ok is represented by returning Ok(T), where T is data returned, if any. If no data is returned, () is T.

Errors are represented by Err(FswStatus), with the status returned by the operation being directly available inside the Err.

Variants

No error.

Occasionally used by the Rust library to denote errors without status codes in fswatch.

Trait Implementations

impl Debug for FswStatus
[src]

Formats the value using the given formatter.

impl PartialEq for FswStatus
[src]

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

This method tests for !=.

impl From<FSW_STATUS> for FswStatus
[src]

Converts from the FSW_STATUS type into the Rust FswStatus.

This should never need to be used if utilizing the Rust wrappers. If given an invalid code, this will default to UnknownError.