Trait ra_ap_vfs::loader::Handle [−][src]
pub trait Handle: Debug { fn spawn(sender: Sender) -> Self
where
Self: Sized; fn set_config(&mut self, config: Config); fn invalidate(&mut self, path: AbsPathBuf); fn load_sync(&mut self, path: &AbsPath) -> Option<Vec<u8>>; }
Expand description
Interface for reading and watching files.
Required methods
fn set_config(&mut self, config: Config)
fn set_config(&mut self, config: Config)
Set this handle’s configuration.
fn invalidate(&mut self, path: AbsPathBuf)
fn invalidate(&mut self, path: AbsPathBuf)
The file’s content at path
has been modified, and should be reloaded.