[][src]Struct fluence_faas::FluenceFaaS

pub struct FluenceFaaS { /* fields omitted */ }

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]

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]

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]

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]

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]

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.