Skip to main content

AnyHttpExecutor

Trait AnyHttpExecutor 

Source
pub trait AnyHttpExecutor:
    AnyExt
    + Serialize
    + Deserialize {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        cx: PipelineCx,
        db_conns: DbConns,
    ) -> Pin<Box<dyn Future<Output = PipelineResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generic executor trait - this is the main trait that endpoint executors will implement.

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, cx: PipelineCx, db_conns: DbConns, ) -> Pin<Box<dyn Future<Output = PipelineResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes a query using the given executor and database connection.

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn AnyHttpExecutor + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn AnyHttpExecutor + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn AnyHttpExecutor + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn AnyHttpExecutor + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§