[][src]Struct fluence_app_service::AppService

pub struct AppService { /* fields omitted */ }

Implementations

impl AppService[src]

pub fn new<C, S>(
    config: C,
    service_id: S,
    envs: Vec<String>
) -> Result<Self, AppServiceError> where
    C: TryInto<ModulesConfig>,
    S: AsRef<str>,
    AppServiceError: From<C::Error>, 
[src]

Create Service with given modules and service id.

pub fn call<MN: AsRef<str>, FN: AsRef<str>>(
    &mut self,
    module_name: MN,
    func_name: FN,
    arguments: Value,
    call_parameters: CallParameters
) -> Result<Vec<IValue>, AppServiceError>
[src]

Call a specified function of loaded 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.