Expand description
Code to watch configuration files for any changes.
Structsยง
- File
Event Receiver - The receiver half of a watch channel used for receiving
Events sent by aFileWatcher. - File
Event Sender - The sender half of a watch channel used by a
FileWatcherfor sendingEvents. - File
Watcher - A wrapper around a
notify::Watcherto watch a set of parent directories in order to learn about changes in some specific files that they contain. - File
Watcher Builder - Builder used to configure a
FileWatcherbefore it starts watching for changes.
Enumsยง
- DirEvent
Filter ๐ - A filter for deciding what to do with a notify::Event pertaining to files that are relative to one of the directories we are watching.
- Event
- Event possibly triggering a configuration reload
- File
Watcher Build Error - An error coming from a
FileWatcherBuilder.
Functionsยง
- channel
- Create a new channel for use with a
FileWatcher. - handle_
event ๐ - Map a
notifyevent to theEventtype returned byFileWatcher. - ignore_
event_ ๐kind - Check whether this is a kind of
notify::Eventthat we want to ignore.
Type Aliasesยง
- Notify
Watcher ๐ - The concrete type of the underlying watcher.
- Result
ResultwhoseErrisFileWatcherBuildError.