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

pub trait Ingredient<T: Send> {
    fn exec(&self, tea_batch: Vec<T>) -> Vec<T>;
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<T>) -> Vec<T>

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<T: Send + 'static> Ingredient<T> for Pour<T>[src]

impl<T: Send + 'static> Ingredient<T> for Skim<T>[src]

impl<T: Send + 'static> Ingredient<T> for Steep<T>[src]

Loading content...