RuntimeModule

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 { ... }
}

Required Methods§

Source

fn name(&self) -> Identifier

Source

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§

Source

fn attach(&mut self, _chunk: ChunkUkey)

Source

fn stage(&self) -> RuntimeModuleStage

Source

fn full_hash(&self) -> bool

Source

fn dependent_hash(&self) -> bool

Source

fn should_isolate(&self) -> bool

Source

fn template(&self) -> Vec<(String, String)>

Source

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,

Implementors§