pub enum WatchError {
Git(GitError),
Watch {
path: PathBuf,
source: Error,
},
Stopped,
}Expand description
A failure while starting, watching, or loading for a crate::RepositoryWatcher.
Variants§
Git(GitError)
Watch
The platform watcher could not be created or could not observe a path.
Fields
Stopped
The watcher task is no longer running.
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WatchError
impl !UnwindSafe for WatchError
impl Freeze for WatchError
impl Send for WatchError
impl Sync for WatchError
impl Unpin for WatchError
impl UnsafeUnpin 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