Trait RuntimeModule
Source pub trait RuntimeModule: Module + CustomSourceRuntimeModule {
// Required methods
fn name(&self) -> Identifier;
fn generate<'life0, 'life1, 'async_trait>(
&'life0 self,
compilation: &'life1 Compilation,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn attach(&mut self, _chunk: ChunkUkey) { ... }
fn stage(&self) -> RuntimeModuleStage { ... }
fn full_hash(&self) -> bool { ... }
fn dependent_hash(&self) -> bool { ... }
fn should_isolate(&self) -> bool { ... }
fn template(&self) -> Vec<(String, String)> { ... }
fn generate_with_custom<'life0, 'life1, 'async_trait>(
&'life0 self,
compilation: &'life1 Compilation,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}