Struct fce::FCE [−][src]
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]
&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,
import_name: S,
wasm_bytes: &[u8],
config: FCEModuleConfig
) -> Result<(), FCEError>
[src]
&mut self,
import_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
[src]
impl !Send for FCE
[src]
impl !Sync for FCE
[src]
impl Unpin for FCE
[src]
impl !UnwindSafe for FCE
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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>,