Expand description
Code to watch configuration files for any changes.
Structs§
- File
Event Receiver - The receiver half of a watch channel used for receiving
Event
s sent by aFileWatcher
. - File
Event Sender - The sender half of a watch channel used by a
FileWatcher
for sendingEvent
s. - File
Watcher - A wrapper around a
notify::Watcher
to 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
FileWatcher
before 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
notify
event to theEvent
type returned byFileWatcher
. - ignore_
event_ 🔒kind - Check whether this is a kind of [
notify::Event
] that we want to ignore.
Type Aliases§
- Notify
Watcher 🔒 - The concrete type of the underlying watcher.
- Result
Result
whoseErr
isFileWatcherBuildError
.