Struct marine::Marine [−][src]
pub struct Marine { /* fields omitted */ }
Expand description
The base struct of Marine, the Fluence compute runtime.
Implementations
impl Marine
[src]
impl Marine
[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>, MError>
[src]
pub fn call<MN: AsRef<str>, FN: AsRef<str>>(
&mut self,
module_name: MN,
func_name: FN,
arguments: &[IValue]
) -> Result<Vec<IValue>, MError>
[src]Invoke a function of a module inside Marine by given function name with given arguments.
pub fn load_module<S: Into<String>>(
&mut self,
name: S,
wasm_bytes: &[u8],
config: MModuleConfig
) -> Result<(), MError>
[src]
pub fn load_module<S: Into<String>>(
&mut self,
name: S,
wasm_bytes: &[u8],
config: MModuleConfig
) -> Result<(), MError>
[src]Load a new module inside Marine.
pub fn unload_module<S: AsRef<str>>(&mut self, name: S) -> Result<(), MError>
[src]
pub fn unload_module<S: AsRef<str>>(&mut self, name: S) -> Result<(), MError>
[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, MModuleInterface<'_>)>
[src]
pub fn interface(&self) -> impl Iterator<Item = (&str, MModuleInterface<'_>)>
[src]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<'_>>
[src]
pub fn module_interface<S: AsRef<str>>(
&self,
module_name: S
) -> Option<MModuleInterface<'_>>
[src]Return function signatures exported by module with given name.
pub fn module_record_types<S: AsRef<str>>(
&self,
module_name: S
) -> Option<&MRecordTypes>
[src]
pub fn module_record_types<S: AsRef<str>>(
&self,
module_name: S
) -> Option<&MRecordTypes>
[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]
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
Auto Trait Implementations
impl !RefUnwindSafe for Marine
impl !Send for Marine
impl !Sync for Marine
impl Unpin for Marine
impl !UnwindSafe for Marine
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self