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

Spawn a new handle with the given sender.

Set this handle’s configuration.

The file’s content at path has been modified, and should be reloaded.

Load the content of the given file, returning None if it does not exists.

Implementors