Skip to main content

SimpleFunctionExecutor

Trait SimpleFunctionExecutor 

Source
pub trait SimpleFunctionExecutor: Send + Sync {
    // Required method
    fn evaluate<'life0, 'async_trait>(
        &'life0 self,
        args: Vec<Value>,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn enable_cache(&self) -> bool { ... }
    fn timeout(&self) -> Option<Duration> { ... }
}

Required Methods§

Source

fn evaluate<'life0, 'async_trait>( &'life0 self, args: Vec<Value>, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Evaluate the operation.

Provided Methods§

Source

fn enable_cache(&self) -> bool

Source

fn timeout(&self) -> Option<Duration>

Returns None to use the default timeout (1800s)

Implementors§