Skip to main content

Run

Trait Run 

Source
pub trait Run<DriverType: Driver>: Send {
    type Output: Send;

    // Required method
    fn run<'a>(
        self,
        driver: &'a DriverType,
    ) -> impl Future<Output = Result<Self::Output, DriverType::Error>> + Send + 'a
       where Self: 'a,
             DriverType: 'a;
}
Expand description

Runs a DSL value against a statically selected driver.

Required Associated Types§

Source

type Output: Send

Output of the final operation in this runnable value.

Required Methods§

Source

fn run<'a>( self, driver: &'a DriverType, ) -> impl Future<Output = Result<Self::Output, DriverType::Error>> + Send + 'a
where Self: 'a, DriverType: 'a,

Runs the value, returning the first error or the final operation’s output.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<DriverType, First, Second> Run<DriverType> for Sequence<First, Second>
where DriverType: Driver, First: Run<DriverType>, Second: Run<DriverType>,

Source§

type Output = <Second as Run<DriverType>>::Output

Source§

impl<DriverType, Operation> Run<DriverType> for OperationStep<Operation>
where DriverType: Execute<Operation>, Operation: Send,

Source§

type Output = <DriverType as Execute<Operation>>::Output