Struct fluence_faas::FluenceFaaS [−][src]
pub struct FluenceFaaS { /* fields omitted */ }
Implementations
impl FluenceFaaS
[src]
impl FluenceFaaS
[src]pub fn with_raw_config<C>(config: C) -> Result<Self, FaaSError> where
C: TryInto<FaaSConfig>,
FaaSError: From<C::Error>,
[src]
pub fn with_raw_config<C>(config: C) -> Result<Self, FaaSError> where
C: TryInto<FaaSConfig>,
FaaSError: From<C::Error>,
[src]Creates FaaS from config deserialized from TOML.
pub fn with_modules<C>(
modules: HashMap<String, Vec<u8>>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<FaaSConfig>,
FaaSError: From<C::Error>,
[src]
pub fn with_modules<C>(
modules: HashMap<String, Vec<u8>>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<FaaSConfig>,
FaaSError: From<C::Error>,
[src]Creates FaaS with given modules.
pub fn with_module_names<C>(
names: &HashMap<String, String>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<FaaSConfig>,
FaaSError: From<C::Error>,
[src]
pub fn with_module_names<C>(
names: &HashMap<String, String>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<FaaSConfig>,
FaaSError: From<C::Error>,
[src]Searches for modules in config.modules_dir
, loads only those in the names
set
pub fn call_with_ivalues<MN: AsRef<str>, FN: AsRef<str>>(
&mut self,
module_name: MN,
func_name: FN,
args: &[IValue],
call_parameters: CallParameters
) -> Result<Vec<IValue>, FaaSError>
[src]
pub fn call_with_ivalues<MN: AsRef<str>, FN: AsRef<str>>(
&mut self,
module_name: MN,
func_name: FN,
args: &[IValue],
call_parameters: CallParameters
) -> Result<Vec<IValue>, FaaSError>
[src]Call a specified function of loaded on a startup module by its name.
pub fn call_with_json<MN: AsRef<str>, FN: AsRef<str>>(
&mut self,
module_name: MN,
func_name: FN,
json_args: JValue,
call_parameters: CallParameters
) -> Result<JValue, FaaSError>
[src]
pub fn call_with_json<MN: AsRef<str>, FN: AsRef<str>>(
&mut self,
module_name: MN,
func_name: FN,
json_args: JValue,
call_parameters: CallParameters
) -> Result<JValue, FaaSError>
[src]Call a specified function of loaded on a startup module by its name.
pub fn get_interface(&self) -> FaaSInterface<'_>
[src]
pub fn get_interface(&self) -> FaaSInterface<'_>
[src]Return all export functions (name and signatures) of loaded modules.
Trait Implementations
impl Send for FluenceFaaS
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FluenceFaaS
impl !Sync for FluenceFaaS
impl Unpin for FluenceFaaS
impl !UnwindSafe for FluenceFaaS
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