Trait mun_vfs::Monitor

source ·
pub trait Monitor {
    fn new(sender: Box<dyn Fn(MonitorMessage) + Send>) -> Self
    where
        Self: Sized
; fn set_config(&mut self, config: MonitorConfig); fn reload(&mut self, path: &AbsPath); }
Expand description

A trait to monitor a set of directories and files TODO: In the future it would be nice to do this with a Future (no pun intended).

Required Methods§

Instantiates a new instance of Self

Updates the configuration of things to monitor.

Reload the content of the specified file. This will trigger a new Loaded message to be send.

Implementors§