pub struct FileExtManager {
pub plugins: HashMap<String, Arc<RuntimeFileExt>>,
}Expand description
Use this struct to load files according to their extension.
Fields§
§plugins: HashMap<String, Arc<RuntimeFileExt>>Implementations§
Source§impl FileExtManager
impl FileExtManager
Sourcepub fn new(plugins: HashMap<String, Arc<RuntimeFileExt>>) -> FileExtManager
pub fn new(plugins: HashMap<String, Arc<RuntimeFileExt>>) -> FileExtManager
Create a new FileExtManager with the given plugins.
Sourcepub async fn load(
&self,
path: PathBuf,
inputs: Inputs,
outputs: Outputs,
queries: Queries,
queryables: Queryables,
configuration: Value,
) -> Result<RuntimeNode, Report>
pub async fn load( &self, path: PathBuf, inputs: Inputs, outputs: Outputs, queries: Queries, queryables: Queryables, configuration: Value, ) -> Result<RuntimeNode, Report>
Load a file according to its extension. It’s instantiating the Node, and so needs all
the primitives and configuration. This will await for the Node to be instantiated.
Auto Trait Implementations§
impl Freeze for FileExtManager
impl !RefUnwindSafe for FileExtManager
impl Send for FileExtManager
impl Sync for FileExtManager
impl Unpin for FileExtManager
impl !UnwindSafe for FileExtManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more