#[non_exhaustive]pub enum WatcherError {
Setup(String),
Watch(String),
}Expand description
Errors from setting up or running the watcher.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Setup(String)
The filesystem watcher could not be created.
Watch(String)
A path could not be watched.
Trait Implementations§
Source§impl Debug for WatcherError
impl Debug for WatcherError
Source§impl Display for WatcherError
impl Display for WatcherError
Source§impl Error for WatcherError
impl Error for WatcherError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for WatcherError
impl RefUnwindSafe for WatcherError
impl Send for WatcherError
impl Sync for WatcherError
impl Unpin for WatcherError
impl UnsafeUnpin for WatcherError
impl UnwindSafe for WatcherError
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