Skip to main content

RuntimeModule

Trait RuntimeModule 

Source
pub trait RuntimeModule:
    Module
    + CustomSourceRuntimeModule
    + AttachableRuntimeModule
    + NamedRuntimeModule {
    // Required method
    fn generate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        context: &'life1 RuntimeModuleGenerateContext<'life2>,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided methods
    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 { ... }
    fn additional_runtime_requirements(
        &self,
        _compilation: &Compilation,
    ) -> RuntimeGlobals { ... }
}

Required Methods§

Source

fn generate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, context: &'life1 RuntimeModuleGenerateContext<'life2>, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

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,

Source

fn additional_runtime_requirements( &self, _compilation: &Compilation, ) -> RuntimeGlobals

Implementors§