[−][src]Struct fce::FCE
The base struct of the Fluence Compute Engine.
Implementations
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,
argument: &[IValue]
) -> Result<Vec<IValue>, FCEError>
[src]
&mut self,
module_name: MN,
func_name: FN,
argument: &[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
) -> Result<&WasiState, FCEError>
[src]
&mut self,
module_name: S
) -> Result<&WasiState, FCEError>
pub fn interface(
&self
) -> impl Iterator<Item = (&str, Vec<FCEFunctionSignature<'_>>)>
[src]
&self
) -> impl Iterator<Item = (&str, Vec<FCEFunctionSignature<'_>>)>
Return function signatures of all loaded info FCE modules with their names.
pub fn module_interface<S: AsRef<str>>(
&self,
module_name: S
) -> Result<impl Iterator<Item = FCEFunctionSignature<'_>>, FCEError>
[src]
&self,
module_name: S
) -> Result<impl Iterator<Item = FCEFunctionSignature<'_>>, FCEError>
Return function signatures exported by module with given name.
pub fn record_types(&self) -> impl Iterator<Item = &(u64, IRecordType)>
[src]
Return record types of export functions of all loaded info FCE modules.
pub fn module_record_types<S: AsRef<str>>(
&self,
module_name: S
) -> Result<impl Iterator<Item = &(u64, IRecordType)>, FCEError>
[src]
&self,
module_name: S
) -> Result<impl Iterator<Item = &(u64, IRecordType)>, FCEError>
Return record types exported by module with given name.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FCE
impl !Send for FCE
impl !Sync for FCE
impl Unpin for FCE
impl !UnwindSafe for FCE
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,