[−][src]Struct rettle::pot::Pot
Data Structure that holds the recipe to brew tea (ETL data).
Methods
impl<T: Send + 'static> Pot<T>
[src]
pub fn new() -> Pot<T>
[src]
Initializes Pot with an empty recipe and empty sources.
pub fn add_ingredient(
self,
ingredient: Box<dyn Ingredient<T> + Send + Sync>
) -> Pot<T>
[src]
self,
ingredient: Box<dyn Ingredient<T> + Send + Sync>
) -> Pot<T>
Adds Ingredient to recipe held by the Pot.
Arguments
ingredient
- the ingredient to add to the recipe
pub fn add_source(self, source: Box<dyn Source<T>>) -> Pot<T>
[src]
pub fn get_sources(&self) -> &Vec<Box<dyn Source<T>>>
[src]
Returns the sources held by the Pot.
pub fn get_recipe(
&self
) -> Arc<RwLock<Vec<Box<dyn Ingredient<T> + Send + Sync>>>>
[src]
&self
) -> Arc<RwLock<Vec<Box<dyn Ingredient<T> + Send + Sync>>>>
Returns the recipe held by the Pot.
pub fn brew(&self, brewery: &Brewery)
[src]
Iterates over sources to pull in data and send jobs to the Brewery for processing.
Arguments
brewery
- Brewery struct holding the receiver and Brewer Array to process Tea
Auto Trait Implementations
impl<T> !RefUnwindSafe for Pot<T>
impl<T> !Send for Pot<T>
impl<T> !Sync for Pot<T>
impl<T> Unpin for Pot<T>
impl<T> !UnwindSafe for Pot<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,