pub struct SmartModuleChainInstance { /* private fields */ }Expand description
SmartModule Chain Instance that can be executed
Implementations§
source§impl SmartModuleChainInstance
impl SmartModuleChainInstance
sourcepub fn process(
&mut self,
input: SmartModuleInput,
metric: &SmartModuleChainMetrics
) -> Result<SmartModuleOutput>
pub fn process( &mut self, input: SmartModuleInput, metric: &SmartModuleChainMetrics ) -> Result<SmartModuleOutput>
A single record is processed thru all smartmodules in the chain. The output of one smartmodule is the input of the next smartmodule. A single record may result in multiple records. The output of the last smartmodule is added to the output of the chain.
pub async fn look_back<F, R>( &mut self, read_fn: F, metrics: &SmartModuleChainMetrics ) -> Result<()>where R: Future<Output = Result<Vec<Record>>>, F: Fn(Lookback) -> R,
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SmartModuleChainInstance
impl Send for SmartModuleChainInstance
impl Sync for SmartModuleChainInstance
impl Unpin for SmartModuleChainInstance
impl !UnwindSafe for SmartModuleChainInstance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more