[−][src]Struct fluence_faas::FluenceFaaS
Implementations
impl FluenceFaaS
[src]
pub fn new<P: Into<PathBuf>>(config_file_path: P) -> Result<Self, FaaSError>
[src]
Creates FaaS from config on filesystem.
pub fn with_raw_config<C>(config: C) -> Result<Self, FaaSError> where
C: TryInto<ModulesConfig>,
FaaSError: From<C::Error>,
[src]
C: TryInto<ModulesConfig>,
FaaSError: From<C::Error>,
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<ModulesConfig>,
FaaSError: From<C::Error>,
[src]
modules: HashMap<String, Vec<u8>>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<ModulesConfig>,
FaaSError: From<C::Error>,
Creates FaaS with given modules.
pub fn with_module_names<C>(
names: &HashSet<String>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<ModulesConfig>,
FaaSError: From<C::Error>,
[src]
names: &HashSet<String>,
config: C
) -> Result<Self, FaaSError> where
C: TryInto<ModulesConfig>,
FaaSError: From<C::Error>,
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]
&mut self,
module_name: MN,
func_name: FN,
args: &[IValue],
call_parameters: CallParameters
) -> Result<Vec<IValue>, FaaSError>
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: Value,
call_parameters: CallParameters
) -> Result<Vec<IValue>, FaaSError>
[src]
&mut self,
module_name: MN,
func_name: FN,
json_args: Value,
call_parameters: CallParameters
) -> Result<Vec<IValue>, FaaSError>
Call a specified function of loaded on a startup module by its name.
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> 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,
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> 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.
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>,