clankerdiff-watch 0.1.9

Native filesystem watching and coalesced Git snapshot publication
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::file_watcher::FileWatchError;
use clankerdiff_git::GitError;

/// A failure while starting, watching, or loading for a [`crate::RepositoryWatcher`].
#[derive(Debug, thiserror::Error)]
pub enum WatchError {
    #[error(transparent)]
    Git(#[from] GitError),
    /// The platform watcher could not be created or could not observe a path.
    #[error(transparent)]
    FileWatch(#[from] FileWatchError),
    /// The watcher task is no longer running.
    #[error("the repository watcher has stopped")]
    Stopped,
}