Skip to main content

subscribe_changes

Function subscribe_changes 

Source
pub fn subscribe_changes(
    plugin_id: &str,
    keys: Vec<String>,
) -> Result<Receiver<Option<PluginConfigChange>>>
Expand description

Subscribe to changes for selected keys in a plugin config file.

The returned watch receiver emits Some(change) whenever the config file is created or modified and one of the watched keys changes value. An empty keys list watches every parsed key.