Struct marine::MModuleConfig[][src]

pub struct MModuleConfig {
    pub mem_pages_count: u32,
    pub raw_imports: ImportObject,
    pub host_imports: HashMap<String, HostImportDescriptor>,
    pub wasi_version: WasiVersion,
    pub wasi_envs: HashMap<Vec<u8>, Vec<u8>>,
    pub wasi_preopened_files: HashSet<PathBuf>,
    pub wasi_mapped_dirs: HashMap<String, PathBuf>,
}

Fields

mem_pages_count: u32

Maximum number of Wasm memory pages that loaded module can use. Each Wasm pages is 65536 bytes long.

raw_imports: ImportObject

Import object that will be used in module instantiation process.

host_imports: HashMap<String, HostImportDescriptor>

Imports from the host side that will be used in module instantiation process.

wasi_version: WasiVersion

Desired WASI version.

wasi_envs: HashMap<Vec<u8>, Vec<u8>>

Environment variables for loaded modules.

wasi_preopened_files: HashSet<PathBuf>

List of available directories for loaded modules.

wasi_mapped_dirs: HashMap<String, PathBuf>

Mapping between paths.

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.