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
sourceimpl Default for MarineConfig
impl Default for MarineConfig
sourcefn default() -> MarineConfig
fn default() -> MarineConfig
Returns the “default value” for a type. Read more
sourceimpl TryFrom<TomlMarineConfig> for MarineConfig
impl TryFrom<TomlMarineConfig> for MarineConfig
type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
sourcefn try_from(toml_config: TomlMarineConfig) -> Result<Self, Self::Error>
fn try_from(toml_config: TomlMarineConfig) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for MarineConfig
impl !Send for MarineConfig
impl !Sync for MarineConfig
impl Unpin for MarineConfig
impl !UnwindSafe for MarineConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more