Subscribe to file watcher events
(&self)
| 102 | |
| 103 | /// Subscribe to file watcher events |
| 104 | pub fn subscribe(&self) -> broadcast::Receiver<WatcherEvent> { |
| 105 | self.event_tx.subscribe() |
| 106 | } |
| 107 | |
| 108 | /// Start watching a directory |
| 109 | pub fn watch(&self, path: &Path) -> Result<(), WatcherError> { |
no outgoing calls