Skip to main content

SourceFactoryBase

Trait SourceFactoryBase 

Source
pub trait SourceFactoryBase:
    SourceFactory
    + Send
    + Sync
    + 'static {
    type Spec: DeserializeOwned + Send + Sync;

    // Required methods
    fn name(&self) -> &str;
    fn get_output_schema<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        spec: &'life1 Self::Spec,
        context: &'life2 FlowInstanceContext,
    ) -> Pin<Box<dyn Future<Output = Result<EnrichedValueType>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn build_executor<'life0, 'async_trait>(
        self: Arc<Self>,
        source_name: &'life0 str,
        spec: Self::Spec,
        context: Arc<FlowInstanceContext>,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn SourceExecutor>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn register(self, registry: &mut ExecutorFactoryRegistry) -> Result<()>
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

fn name(&self) -> &str

Source

fn get_output_schema<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, spec: &'life1 Self::Spec, context: &'life2 FlowInstanceContext, ) -> Pin<Box<dyn Future<Output = Result<EnrichedValueType>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn build_executor<'life0, 'async_trait>( self: Arc<Self>, source_name: &'life0 str, spec: Self::Spec, context: Arc<FlowInstanceContext>, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn SourceExecutor>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn register(self, registry: &mut ExecutorFactoryRegistry) -> Result<()>
where Self: Sized,

Implementors§