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>>; }

Interface for reading and watching files.

Required methods

fn spawn(sender: Sender) -> Self where
    Self: Sized
[src]

Spawn a new handle with the given sender.

fn set_config(&mut self, config: Config)[src]

Set this handle’s configuration.

fn invalidate(&mut self, path: AbsPathBuf)[src]

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

fn load_sync(&mut self, path: &AbsPath) -> Option<Vec<u8>>[src]

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

Loading content...

Implementors

Loading content...