Struct fce::FCE[][src]

pub struct FCE { /* fields omitted */ }

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,
    arguments: &[IValue]
) -> Result<Vec<IValue>, FCEError>
[src]

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]

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]

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]

Return function signatures exported by module with given name.

pub fn module_record_types<S: AsRef<str>>(
    &self,
    module_name: S
) -> Option<&RecordTypes>
[src]

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]

Return record type for supplied record id exported by module with given name.

Trait Implementations

impl Default for FCE[src]

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]

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> Pointable for T

type Init = T

The type for initializers.

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]

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.