Type Alias marine::wasmtime::MarineConfig

source ·
pub type MarineConfig = MarineConfig<WasmBackend>;

Aliased Type§

struct MarineConfig {
    pub modules_dir: Option<PathBuf>,
    pub total_memory_limit: Option<u64>,
    pub modules_config: Vec<ModuleDescriptor<WasmtimeWasmBackend>>,
    pub default_modules_config: Option<MarineModuleConfig<WasmtimeWasmBackend>>,
}

Fields§

§modules_dir: Option<PathBuf>

Path to a dir where compiled Wasm modules are located.

§total_memory_limit: Option<u64>

Total memory available for the service (in bytes)

§modules_config: Vec<ModuleDescriptor<WasmtimeWasmBackend>>

Settings for a module with particular name (not HashMap because the order is matter).

§default_modules_config: Option<MarineModuleConfig<WasmtimeWasmBackend>>

Settings for a module that name’s not been found in modules_config.