Trait chewdata::step::Step

source ·
pub trait Step: Send + Sync + StepClone {
    // Required methods
    fn exec<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_receiver(&mut self, receiver: Receiver<Context>);
    fn receiver(&self) -> Option<&Receiver<Context>>;
    fn set_sender(&mut self, sender: Sender<Context>);
    fn sender(&self) -> Option<&Sender<Context>>;

    // Provided methods
    fn number(&self) -> usize { ... }
    fn name(&self) -> String { ... }
    fn send<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 Context
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn receive<'step, 'async_trait>(
        &'step self
    ) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Context> + Send + 'step>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'step: 'async_trait { ... }
}

Required Methods§

source

fn exec<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn set_receiver(&mut self, receiver: Receiver<Context>)

source

fn receiver(&self) -> Option<&Receiver<Context>>

source

fn set_sender(&mut self, sender: Sender<Context>)

source

fn sender(&self) -> Option<&Sender<Context>>

Provided Methods§

source

fn number(&self) -> usize

source

fn name(&self) -> String

source

fn send<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Context ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn receive<'step, 'async_trait>( &'step self ) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Context> + Send + 'step>>> + Send + 'async_trait>>
where Self: 'async_trait, 'step: 'async_trait,

Trait Implementations§

source§

impl Clone for Box<dyn Step>

source§

fn clone(&self) -> Box<dyn Step>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

source§

impl Step for Eraser

source§

impl Step for Generator

source§

impl Step for Reader

source§

impl Step for Transformer

This Step transform a dataset.

source§

impl Step for Validator

source§

impl Step for Writer