[][src]Trait rettle::ingredient::Ingredient

pub trait Ingredient {
    fn exec(
        &self,
        tea_batch: Vec<Box<dyn Tea + Send>>
    ) -> Vec<Box<dyn Tea + Send>>;
fn print(&self);
fn as_any(&self) -> &dyn Any;
fn get_name(&self) -> &str; }

Trait given to Box elements added to Pot for pulling, processing, or sending data.

Required methods

fn exec(&self, tea_batch: Vec<Box<dyn Tea + Send>>) -> Vec<Box<dyn Tea + Send>>

Run computation on batch of Tea.

Arguements

  • tea_batch - current tea batch to be processed

fn print(&self)

Print out current step information.

fn as_any(&self) -> &dyn Any

Used to convert Box to Any to unwrap Ingredient.

fn get_name(&self) -> &str

Returns name given to Ingredient.

Loading content...

Implementors

impl Ingredient for Pour[src]

impl Ingredient for Steep[src]

Loading content...