Struct fluence_app_service::FaaSModuleConfig [−][src]
pub struct FaaSModuleConfig { pub mem_pages_count: Option<u32>, pub logger_enabled: bool, pub host_imports: HashMap<String, HostImportDescriptor, RandomState>, pub wasi: Option<FaaSWASIConfig>, pub logging_mask: i32, }
Various settings that could be used to guide Marine 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.
host_imports: HashMap<String, HostImportDescriptor, RandomState>
Export from host functions that will be accessible on the Wasm side by provided name.
wasi: Option<FaaSWASIConfig>
A WASI config.
logging_mask: i32
Mask used to filter logs, for details see log_utf8_string
Implementations
impl FaaSModuleConfig
[src]
impl FaaSModuleConfig
[src]pub fn extend_wasi_envs(
&mut self,
new_envs: HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>
)
[src]
&mut self,
new_envs: HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>
)
pub fn extend_wasi_files(
&mut self,
new_preopened_files: HashSet<PathBuf, RandomState>,
new_mapped_dirs: HashMap<String, PathBuf, RandomState>
)
[src]
&mut self,
new_preopened_files: HashSet<PathBuf, RandomState>,
new_mapped_dirs: HashMap<String, PathBuf, RandomState>
)
Trait Implementations
impl Default for FaaSModuleConfig
[src]
impl Default for FaaSModuleConfig
[src]pub fn default() -> FaaSModuleConfig
[src]
pub fn default() -> FaaSModuleConfig
[src]Returns the “default value” for a type. Read more
impl TryFrom<TomlFaaSModuleConfig> for FaaSModuleConfig
[src]
impl TryFrom<TomlFaaSModuleConfig> for FaaSModuleConfig
[src]pub fn try_from(
toml_config: TomlFaaSModuleConfig
) -> Result<FaaSModuleConfig, <FaaSModuleConfig as TryFrom<TomlFaaSModuleConfig>>::Error>
[src]
pub fn try_from(
toml_config: TomlFaaSModuleConfig
) -> Result<FaaSModuleConfig, <FaaSModuleConfig as TryFrom<TomlFaaSModuleConfig>>::Error>
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FaaSModuleConfig
impl !Send for FaaSModuleConfig
impl !Sync for FaaSModuleConfig
impl Unpin for FaaSModuleConfig
impl !UnwindSafe for FaaSModuleConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self