ExtCodeCache

Trait ExtCodeCache 

Source
pub trait ExtCodeCache {
    // Required methods
    fn get_code_cache_info(
        &self,
        specifier: &ModuleSpecifier,
        code: &ModuleSourceCode,
        esm: bool,
    ) -> SourceCodeCacheInfo;
    fn code_cache_ready(
        &self,
        specifier: ModuleSpecifier,
        hash: u64,
        code_cache: &[u8],
        esm: bool,
    );
}

Required Methods§

Source

fn get_code_cache_info( &self, specifier: &ModuleSpecifier, code: &ModuleSourceCode, esm: bool, ) -> SourceCodeCacheInfo

Source

fn code_cache_ready( &self, specifier: ModuleSpecifier, hash: u64, code_cache: &[u8], esm: bool, )

Implementors§