pub trait LocalImport<Store: Store>: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn inputs_cardinality(&self) -> usize;
    fn outputs_cardinality(&self) -> usize;
    fn arguments(&self) -> &[FunctionArg];
    fn outputs(&self) -> &[IType];
    fn call_async<'args>(
        &'args self,
        store: &'args mut <Store as Store>::ActualStore<'_>,
        arguments: &'args [IValue]
    ) -> BoxFuture<'_, Result<Vec<IValue>, Error>>;
}

Required Methods§

source

fn name(&self) -> &str

source

fn inputs_cardinality(&self) -> usize

source

fn outputs_cardinality(&self) -> usize

source

fn arguments(&self) -> &[FunctionArg]

source

fn outputs(&self) -> &[IType]

source

fn call_async<'args>( &'args self, store: &'args mut <Store as Store>::ActualStore<'_>, arguments: &'args [IValue] ) -> BoxFuture<'_, Result<Vec<IValue>, Error>>

Implementations on Foreign Types§

source§

impl<Store: Store> LocalImport<Store> for ()

source§

fn name(&self) -> &str

source§

fn inputs_cardinality(&self) -> usize

source§

fn outputs_cardinality(&self) -> usize

source§

fn arguments(&self) -> &[FunctionArg]

source§

fn outputs(&self) -> &[IType]

source§

fn call_async( &self, _store: &mut <Store as Store>::ActualStore<'_>, _arguments: &[IValue] ) -> BoxFuture<'_, Result<Vec<IValue>, Error>>

Implementors§