pub trait ComponentLoader {
// Required method
fn load_component<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
engine: &'life1 Engine,
component: &'life2 AppComponent<'_>,
) -> Pin<Box<dyn Future<Output = Result<Component>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
A ComponentLoader is responsible for loading Wasmtime Component
s.
Required Methods§
Sourcefn load_component<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
engine: &'life1 Engine,
component: &'life2 AppComponent<'_>,
) -> Pin<Box<dyn Future<Output = Result<Component>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_component<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
engine: &'life1 Engine,
component: &'life2 AppComponent<'_>,
) -> Pin<Box<dyn Future<Output = Result<Component>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Loads a Component
for the given [AppComponent
].