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
Ok
No error.
UnknownError
Occasionally used by the Rust library to denote errors without status codes in fswatch.
SessionUnknown
MonitorAlreadyExists
Memory
UnknownMonitorType
CallbackNotSet
PathsNotSet
MissingContext
InvalidPath
InvalidCallback
InvalidLatency
InvalidRegex
MonitorAlreadyRunning
UnknownValue
InvalidProprety
Trait Implementations
impl Debug for FswStatus
[src]
impl PartialEq for FswStatus
[src]
fn eq(&self, __arg_0: &FswStatus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl From<FSW_STATUS> for FswStatus
[src]
fn from(status: FSW_STATUS) -> FswStatus
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
.