pub enum RuntimeUrlScheme {
StaticallyLinked(Box<dyn UrlSchemePlugin>),
DynamicallyLinked(DynamicallyLinkedUrlSchemePlugin),
}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 UrlSchemePlugin>)
DynamicallyLinked(DynamicallyLinkedUrlSchemePlugin)
Implementations§
Source§impl RuntimeUrlScheme
impl RuntimeUrlScheme
Sourcepub fn target(&self) -> Vec<String>
pub fn target(&self) -> Vec<String>
Return the target of the plugin. This is the URL scheme that the plugin supports.
Sourcepub async fn load(
&self,
url: Url,
inputs: Inputs,
outputs: Outputs,
queries: Queries,
queryables: Queryables,
configuration: Value,
file_ext: Arc<FileExtManager>,
) -> Result<RuntimeNode>
pub async fn load( &self, url: Url, inputs: Inputs, outputs: Outputs, queries: Queries, queryables: Queryables, configuration: Value, file_ext: Arc<FileExtManager>, ) -> Result<RuntimeNode>
Load a Node based on the URL. This will await for the Node to be instantiated.
Auto Trait Implementations§
impl Freeze for RuntimeUrlScheme
impl !RefUnwindSafe for RuntimeUrlScheme
impl Send for RuntimeUrlScheme
impl Sync for RuntimeUrlScheme
impl Unpin for RuntimeUrlScheme
impl !UnwindSafe for RuntimeUrlScheme
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