pub struct Marine { /* private fields */ }
Expand description
The base struct of Marine, the Fluence compute runtime.
Implementations
Invoke a function of a module inside Marine by given function name with given arguments.
Load a new module inside Marine.
Unload previously loaded module.
Return function signatures of all loaded info Marine modules with their names.
pub fn module_interface<S: AsRef<str>>(
&self,
module_name: S
) -> Option<MModuleInterface<'_>>
pub fn module_interface<S: AsRef<str>>(
&self,
module_name: S
) -> Option<MModuleInterface<'_>>
Return function signatures exported by module with given name.
Return record types exported by module with given name.
pub fn module_record_type_by_id<S: AsRef<str>>(
&self,
module_name: S,
record_id: u64
) -> Option<&Rc<IRecordType>>
pub fn module_record_type_by_id<S: AsRef<str>>(
&self,
module_name: S,
record_id: u64
) -> Option<&Rc<IRecordType>>
Return record type for supplied record id exported by module with given name.
Returns a heap size that all modules consume in bytes.