pub enum RuntimeFileExt {
StaticallyLinked(Box<dyn FileExtPlugin>),
DynamicallyLinked(DynamicallyLinkedFileExtPlugin),
}Expand description
This is the main enum of this module. It represents a plugin that can be either statically linked or dynamically linked, allowing the runtime to use either type of plugin interchangeably.
Variants§
StaticallyLinked(Box<dyn FileExtPlugin>)
DynamicallyLinked(DynamicallyLinkedFileExtPlugin)
Implementations§
Source§impl RuntimeFileExt
impl RuntimeFileExt
Sourcepub fn target(&self) -> Vec<String>
pub fn target(&self) -> Vec<String>
Returns the target of the plugin. This is used to determine which plugin to use for a given file.
Sourcepub async fn load(
&self,
path: PathBuf,
inputs: Inputs,
outputs: Outputs,
queries: Queries,
queryables: Queryables,
configuration: Value,
) -> Result<RuntimeNode>
pub async fn load( &self, path: PathBuf, inputs: Inputs, outputs: Outputs, queries: Queries, queryables: Queryables, configuration: Value, ) -> Result<RuntimeNode>
Load a Node based on the PathBuf to the correct file. This will await for the Node to be loaded.
Auto Trait Implementations§
impl Freeze for RuntimeFileExt
impl !RefUnwindSafe for RuntimeFileExt
impl Send for RuntimeFileExt
impl Sync for RuntimeFileExt
impl Unpin for RuntimeFileExt
impl !UnwindSafe for RuntimeFileExt
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