pub enum WatchError {
WatcherSetupFailed {
source: Error,
},
ReadCurrentDirFailed {
source: Error,
},
ReadDirEntryFailed {
source: Error,
},
WatchFileNotResolved {
filename: String,
source: Error,
},
WatchFileFailed {
filename: String,
source: Error,
},
UnwatchFileFailed {
filename: String,
source: Error,
},
WatcherError {
source: RecvError,
},
SpawnSelfFailed {
source: Error,
},
GetSelfPathFailed {
source: Error,
},
ReadCustomDirEntryFailed {
source: Error,
},
}
Variants§
WatcherSetupFailed
ReadCurrentDirFailed
ReadDirEntryFailed
WatchFileNotResolved
WatchFileFailed
UnwatchFileFailed
WatcherError
SpawnSelfFailed
GetSelfPathFailed
ReadCustomDirEntryFailed
Trait Implementations§
Source§impl Debug for WatchError
impl Debug for WatchError
Source§impl Display for WatchError
impl Display for WatchError
Source§impl Error for WatchError
impl Error for WatchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<WatchError> for Error
impl From<WatchError> for Error
Source§fn from(source: WatchError) -> Self
fn from(source: WatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WatchError
impl !RefUnwindSafe for WatchError
impl Send for WatchError
impl Sync for WatchError
impl Unpin for WatchError
impl !UnwindSafe for WatchError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more