pub struct UrlSchemeManager {
pub plugins: HashMap<String, Arc<RuntimeUrlScheme>>,
}Expand description
Use this struct to load files according to their url.
Fields§
§plugins: HashMap<String, Arc<RuntimeUrlScheme>>Implementations§
Source§impl UrlSchemeManager
impl UrlSchemeManager
Sourcepub fn new(plugins: HashMap<String, Arc<RuntimeUrlScheme>>) -> Self
pub fn new(plugins: HashMap<String, Arc<RuntimeUrlScheme>>) -> Self
Create a new UrlSchemeManager with the given plugins.
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 file according to its url. It’s instantiating the Node, and so needs all
the primitives and configuration. This will await for the Node to be instantiated.
If needed the UrlSchemeManager can fallback to the FileExtManager to load the file.
Auto Trait Implementations§
impl Freeze for UrlSchemeManager
impl !RefUnwindSafe for UrlSchemeManager
impl Send for UrlSchemeManager
impl Sync for UrlSchemeManager
impl Unpin for UrlSchemeManager
impl !UnwindSafe for UrlSchemeManager
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