Skip to main content

RunnableWithStore

Trait RunnableWithStore 

Source
pub trait RunnableWithStore {
    type Output;

    // Required method
    fn run<'async_trait, D>(
        self,
        config: D::Config,
        namespace: String,
        cache_sizes: StorageCacheSizes,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
       where D: KeyValueDatabase + Clone + Send + Sync + 'static + 'async_trait,
             D::Store: KeyValueStore + Clone + Send + Sync + 'static,
             D::Error: Send + Sync,
             Self: 'async_trait;
}
Expand description

A job that runs directly against a key-value store, without a full Storage.

Required Associated Types§

Source

type Output

The type produced by running the job.

Required Methods§

Source

fn run<'async_trait, D>( self, config: D::Config, namespace: String, cache_sizes: StorageCacheSizes, ) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
where D: KeyValueDatabase + Clone + Send + Sync + 'static + 'async_trait, D::Store: KeyValueStore + Clone + Send + Sync + 'static, D::Error: Send + Sync, Self: 'async_trait,

Runs the job against the store described by the given config and namespace.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§