ExecutablePlan

Trait ExecutablePlan 

Source
pub trait ExecutablePlan<C: QueryContext> {
    // Required method
    fn execute<'e, 'life0, 'async_trait, E>(
        &'life0 self,
        exec: E,
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
       where E: Executor<'e, Database = Postgres> + 'async_trait,
             Self: 'async_trait,
             'e: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn execute<'e, 'life0, 'async_trait, E>( &'life0 self, exec: E, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where E: Executor<'e, Database = Postgres> + 'async_trait, Self: 'async_trait, 'e: 'async_trait, 'life0: 'async_trait,

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§

Source§

impl<'a, C> ExecutablePlan<C> for DeleteQueryPlan<'a, C>

Source§

impl<'a, C> ExecutablePlan<C> for InsertQueryPlan<'a, C>

Source§

impl<'a, C> ExecutablePlan<C> for ReadQueryPlan<'a, C>
where C: QueryContext,

Source§

impl<'a, C> ExecutablePlan<C> for UpdateQueryPlan<'a, C>