Function setup_settings_watch

Source
pub fn setup_settings_watch() -> (RecommendedWatcher, ServerSettings, impl Stream<Item = ServerSettings>)
Expand description

Setup a watcher for the settings files and return a stream of settings changes.

Returns the watcher, the initial settings, and a stream of settings changes. The watcher is returned so that it can be kept alive for the lifetime of the application. Also returns a snapshot of the current settings.