Trait FileExtPlugin

Source
pub trait FileExtPlugin: Send + Sync {
    // Required methods
    fn new() -> JoinHandle<Result<Box<dyn FileExtPlugin>, Report>> 
       where Self: Sized;
    fn target(&self) -> Vec<String>;
    fn load(
        &self,
        path: PathBuf,
        inputs: Inputs,
        outputs: Outputs,
        queries: Queries,
        queryables: Queryables,
        configuration: Value,
    ) -> JoinHandle<Result<RuntimeNode, Report>> ;
}
Expand description

This trait must be implemented in order to make a plugin compatible with the iridis_file_ext crate.

Required Methods§

Source

fn new() -> JoinHandle<Result<Box<dyn FileExtPlugin>, Report>>
where Self: Sized,

This function is called when the plugin is loaded.

Source

fn target(&self) -> Vec<String>

This function is called when the plugin is loaded to determine which file extensions it supports.

Source

fn load( &self, path: PathBuf, inputs: Inputs, outputs: Outputs, queries: Queries, queryables: Queryables, configuration: Value, ) -> JoinHandle<Result<RuntimeNode, Report>>

This function is called to load a Node from the plugin.

Implementors§