[][src]Struct fluence_app_service::ModuleConfig

pub struct ModuleConfig {
    pub mem_pages_count: Option<u32>,
    pub logger_enabled: bool,
    pub imports: Option<Vec<(String, String)>>,
    pub wasi: Option<WASIConfig>,
}

Various settings that could be used to guide FCE how to load a module in a proper way.

Fields

mem_pages_count: Option<u32>

Maximum memory size accessible by a module in Wasm pages (64 Kb).

logger_enabled: bool

Defines whether FaaS should provide a special host log_utf8_string function for this module.

imports: Option<Vec<(String, String)>>

A list of CLI host imports that should be provided for this module.

wasi: Option<WASIConfig>

A WASI config.

Implementations

impl ModuleConfig[src]

pub fn extend_wasi_envs(self, new_envs: Vec<Vec<u8>>) -> ModuleConfig[src]

pub fn extend_wasi_files(
    self,
    new_preopened_files: Vec<String>,
    new_mapped_dirs: Vec<(String, String)>
) -> ModuleConfig
[src]

Trait Implementations

impl Clone for ModuleConfig[src]

impl Debug for ModuleConfig[src]

impl Default for ModuleConfig[src]

impl TryInto<ModuleConfig> for RawModuleConfig[src]

type Error = FaaSError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.