Skip to main content

Runnable

Trait Runnable 

Source
pub trait Runnable {
    type Output;

    // Required method
    fn run<'async_trait, S>(
        self,
        storage: S,
    ) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'async_trait>>
       where S: Storage + Clone + Send + Sync + 'static + 'async_trait,
             Self: 'async_trait;
}
Expand description

A job that runs against a connected, high-level Storage.

Required Associated Types§

Source

type Output

The type produced by running the job.

Required Methods§

Source

fn run<'async_trait, S>( self, storage: S, ) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'async_trait>>
where S: Storage + Clone + Send + Sync + 'static + 'async_trait, Self: 'async_trait,

Runs the job against the given storage.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§