Struct fce::FCE [−][src]
pub struct FCE { /* fields omitted */ }
The base struct of the Fluence Compute Engine.
Implementations
impl FCE
[src]
impl FCE
[src]pub fn new() -> Self
[src]
pub fn call<MN: AsRef<str>, FN: AsRef<str>>(
&mut self,
module_name: MN,
func_name: FN,
arguments: &[IValue]
) -> Result<Vec<IValue>, FCEError>
[src]
&mut self,
module_name: MN,
func_name: FN,
arguments: &[IValue]
) -> Result<Vec<IValue>, FCEError>
Invoke a function of a module inside FCE by given function name with given arguments.
pub fn load_module<S: Into<String>>(
&mut self,
name: S,
wasm_bytes: &[u8],
config: FCEModuleConfig
) -> Result<(), FCEError>
[src]
&mut self,
name: S,
wasm_bytes: &[u8],
config: FCEModuleConfig
) -> Result<(), FCEError>
Load a new module inside FCE.
pub fn unload_module<S: AsRef<str>>(&mut self, name: S) -> Result<(), FCEError>
[src]
Unload previously loaded module.
pub fn module_wasi_state<S: AsRef<str>>(
&mut self,
module_name: S
) -> Option<&WasiState>
[src]
&mut self,
module_name: S
) -> Option<&WasiState>
pub fn interface(&self) -> impl Iterator<Item = (&str, FCEModuleInterface<'_>)>
[src]
Return function signatures of all loaded info FCE modules with their names.
pub fn module_interface<S: AsRef<str>>(
&self,
module_name: S
) -> Option<FCEModuleInterface<'_>>
[src]
&self,
module_name: S
) -> Option<FCEModuleInterface<'_>>
Return function signatures exported by module with given name.
pub fn module_record_types<S: AsRef<str>>(
&self,
module_name: S
) -> Option<&RecordTypes>
[src]
&self,
module_name: S
) -> Option<&RecordTypes>
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>>
[src]
&self,
module_name: S,
record_id: u64
) -> Option<&Rc<IRecordType>>
Return record type for supplied record id exported by module with given name.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FCE
impl !RefUnwindSafe for FCE
impl !UnwindSafe for FCE
impl !UnwindSafe for FCE