mirror of
https://github.com/fluencelabs/marine.git
synced 2024-12-12 06:45:32 +00:00
make non generic interface of FCE private
This commit is contained in:
parent
be1cd1531c
commit
b070009af3
@ -51,7 +51,7 @@ impl FCE {
|
|||||||
self.call_(module_name.as_ref(), func_name.as_ref(), argument)
|
self.call_(module_name.as_ref(), func_name.as_ref(), argument)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn call_(
|
fn call_(
|
||||||
&mut self,
|
&mut self,
|
||||||
module_name: &str,
|
module_name: &str,
|
||||||
func_name: &str,
|
func_name: &str,
|
||||||
@ -74,7 +74,7 @@ impl FCE {
|
|||||||
self.load_module_(name.into(), wasm_bytes, config)
|
self.load_module_(name.into(), wasm_bytes, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn load_module_(
|
fn load_module_(
|
||||||
&mut self,
|
&mut self,
|
||||||
name: String,
|
name: String,
|
||||||
wasm_bytes: &[u8],
|
wasm_bytes: &[u8],
|
||||||
@ -99,7 +99,7 @@ impl FCE {
|
|||||||
self.unload_module_(name.as_ref())
|
self.unload_module_(name.as_ref())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn unload_module_(&mut self, module_name: &str) -> Result<()> {
|
fn unload_module_(&mut self, module_name: &str) -> Result<()> {
|
||||||
match self.modules.remove(module_name) {
|
match self.modules.remove(module_name) {
|
||||||
Some(_) => Ok(()),
|
Some(_) => Ok(()),
|
||||||
None => Err(FCEError::NoSuchModule(module_name.to_string())),
|
None => Err(FCEError::NoSuchModule(module_name.to_string())),
|
||||||
|
Loading…
Reference in New Issue
Block a user