Skip to main content

BatchedFunctionExecutor

Trait BatchedFunctionExecutor 

Source
pub trait BatchedFunctionExecutor:
    Send
    + Sync
    + Sized
    + 'static {
    // Required methods
    fn evaluate_batch<'life0, 'async_trait>(
        &'life0 self,
        args: Vec<Vec<Value>>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batching_options(&self) -> BatchingOptions;

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

Required Methods§

Source

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

Source

fn batching_options(&self) -> BatchingOptions

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§