Struct marine::MarineConfig

source ·
pub struct MarineConfig {
    pub modules_dir: Option<PathBuf>,
    pub modules_config: Vec<ModuleDescriptor>,
    pub default_modules_config: Option<MarineModuleConfig>,
}
Expand description

Describes the behaviour of the Marine component.

Fields§

§modules_dir: Option<PathBuf>

Path to a dir where compiled Wasm modules are located.

§modules_config: Vec<ModuleDescriptor>

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

§default_modules_config: Option<MarineModuleConfig>

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

Trait Implementations§

Returns the “default value” for a type. Read more
The type returned in the event of a conversion error.
Performs the conversion.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.