[−][src]Trait rettle::source::Source
Trait given to Box elements added to Pot for pulling in raw data.
Required methods
fn collect(
&self,
brewery: &Brewery,
recipe: Arc<RwLock<Vec<Box<dyn Ingredient + Send + Sync>>>>
)
&self,
brewery: &Brewery,
recipe: Arc<RwLock<Vec<Box<dyn Ingredient + Send + Sync>>>>
)
Runs the Fill computation to collect Tea in batches and send to the Brewery for processing.
Arguments
brewery
- Brewery that sends job to process Tearecipe
- clone of recipe to pass to Brewery
fn as_any(&self) -> &dyn Any
Used to convert Box
fn print(&self)
Print out current step information.
fn get_name(&self) -> &str
Returns name given to Ingredient.
fn get_source(&self) -> &str
Returns source given to Ingredient.